17 years ago
Adding service steps with groovy
I know that with groovy you can add any of the steps that come built in as is shown in the tutorial. But, let's say that I'm testing the amazon service and I want to add the CartAdd step to my testcase.
How do I add request steps to the test case? I tried to do something
crazy. See below for what I did.
How do I add request steps to the test case? I tried to do something
crazy. See below for what I did.
// add a properties step
def step = (com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep)(testRunner.getTestCase().getTestSuite().getTestCaseByName( "haha").getTestStepByName( "CartClear" ) )
((com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep)testRunner.testCase).importTestStep( (step), "CartAdd", 1 );