Forum Discussion
2 Replies
Sort By
- SmartBear_SuppoSmartBear 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
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 - Logica_NorwayOccasional ContributorHi
Thank you for the code
I got it
Thanks & Regards
Karthik M
Related Content
- 12 months ago
- 8 years ago
- 9 years ago