Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
Here's a solution hopefully better tailored to your problem:
1) Go to the Events tab, found in the Project view.
2) Add a new TestRunListener.afterStep event to your project.
3) Have it run the following script:
Voilà! If your DataSource Loops all have different names, you can use TestCase properties instead of directly referencing the name in the script.
I hope this helps. Let me know if you have any more questions, and we'll try to help out.
Regards,
Arian
SmartBear Sweden
1) Go to the Events tab, found in the Project view.
2) Add a new TestRunListener.afterStep event to your project.
3) Have it run the following script:
import com.eviware.soapui.model.testsuite.TestStepResult;
if (testStepResult.status == TestStepResult.TestStepStatus.FAILED)
{
testRunner.gotoStepByName("DataSource Loop") //Or whatever else your DataSource loops are called
}
Voilà! If your DataSource Loops all have different names, you can use TestCase properties instead of directly referencing the name in the script.
I hope this helps. Let me know if you have any more questions, and we'll try to help out.
Regards,
Arian
SmartBear Sweden
- cauvery8 years agoContributor
I have more than one datasource loop with different names. How can use Test case in that case as you mentioned SmartBear_Suppo
Or can I provide more than one datasource loop in the event listener like below
import com.eviware.soapui.model.testsuite.TestStepResult;
if (testStepResult.status == TestStepResult.TestStepStatus.FAILED)
{
testRunner.gotoStepByName("DataSource Loop 1")
testRunner.gotoStepByName("DataSource Loop 2")
}Thank you.