Forum Discussion
nishantna
11 years agoOccasional Contributor
You may use following script instead:
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext
presentIndex=context.getCurrentStepIndex()
def count=testRunner.testCase.getTestStepCount()
for(index=0;index<count;index++)
{
if(index!=presentIndex)
{
testStep=testRunner.testCase.getTestStepAt(index)
WsdlTestRunContext testRunContext=new WsdlTestRunContext(testStep)
log.info testStep.run(testRunner,testRunContext)
}
}The only thing you need to do is to place it as any one of the test steps and run this script, it will automatically run remaining test steps.
As far as the problem with your code is concerned, i would say that you should check placing your script as the last step, and then see what happens.