/*
* soapUI, copyright (C) 2004-2011 eviware.com
*
* soapUI is free software; you can redistribute it and/or modify it under the
* terms of version 2.1 of the GNU Lesser General Public License as published by
* the Free Software Foundation.
*
* soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details at gnu.org.
*/
package com.eviware.soapui.impl.wsdl.teststeps.registry;
import com.eviware.soapui.config.ManualTestStepConfig;
import com.eviware.soapui.config.TestStepConfig;
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase;
import com.eviware.soapui.impl.wsdl.teststeps.ManualTestStep;
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep;
public class ManualTestStepFactory extends WsdlTestStepFactory
{
public static final String MANUAL_TEST_STEP = "manualTestStep";
public ManualTestStepFactory()
{
super( MANUAL_TEST_STEP, "Manual TestStep", "Submits a Manual TestStep", "/manualteststep.gif" );
}
public WsdlTestStep buildTestStep( WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest )
{
return new ManualTestStep( testCase, config, forLoadTest );
}
public TestStepConfig createNewTestStep( WsdlTestCase testCase, String name )
{
TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
testStepConfig.setType( MANUAL_TEST_STEP );
testStepConfig.setName( name );
return testStepConfig;
}
public boolean canCreate()
{
return true;
}
public TestStepConfig createConfig( String stepName )
{
ManualTestStepConfig testRequestConfig = ManualTestStepConfig.Factory.newInstance();
TestStepConfig testStep = TestStepConfig.Factory.newInstance();
testStep.setType( MANUAL_TEST_STEP );
testStep.setConfig( testRequestConfig );
testStep.setName( stepName );
return testStep;
}
}