Forum Discussion
SmartBear_Suppo
15 years agoSmartBear Alumni (Retired)
Hi,
You can do that by disabling/enabling TestSteps based on the ThreadIndex in a groovy script...
Add a groovy TestStep before the two other TestSteps in the TestCase and do something like
Regards,
/Dragica
eviware.com
You can do that by disabling/enabling TestSteps based on the ThreadIndex in a groovy script...
Add a groovy TestStep before the two other TestSteps in the TestCase and do something like
if(context.ThreadIndex == 0 ) {
testRunner.testCase.getTestStepByName("Step 1").setDisabled(true);
testRunner.testCase.getTestStepByName("Step 2").setDisabled(false);
} else {
testRunner.testCase.getTestStepByName("Step 1").setDisabled(false);
testRunner.testCase.getTestStepByName("Step 2").setDisabled(true);
}
Regards,
/Dragica
eviware.com