thedivxboy
16 years agoOccasional Contributor
Restarting a test case
Hi,
I'm using soapUI 2.5 beta1 (2008/09/26).
I have a test case with several steps that processes files from a folder.
I have created a groovy script step that loops to the begin of the test case for each file in the specified folder.
But if any step fail, the test case stop and the whole folder is not processed.
So I have written this in the TearDown script window of the test case:
This works correctly but only the step "Init" is performed and not next steps ..
So I want to use
What's the solution ?
Thanks in advance,
Arnaud.
I'm using soapUI 2.5 beta1 (2008/09/26).
I have a test case with several steps that processes files from a folder.
I have created a groovy script step that loops to the begin of the test case for each file in the specified folder.
But if any step fail, the test case stop and the whole folder is not processed.
So I have written this in the TearDown script window of the test case:
if (new String(""+testRunner.getStatus())=="FINISHED") {
com.eviware.soapui.support.UISupport.showInfoMessage("List of tests performed successfully (applReqID's)\n" + context.getProperty("results"));
} else {
testRunner.testCase.getTestStepByName("Init").run(testRunner, context);
}
This works correctly but only the step "Init" is performed and not next steps ..
So I want to use
testRunner.gotoStepByName("Init");but it doesn't works for tear down script ...
What's the solution ?
Thanks in advance,
Arnaud.