def totalTestCases = testSuite.getTestCaseCount();
for(n in (0..totalTestCases-1)) {
if (testSuite.getTestCaseAt(n).getTestStepByName("MyTestStep")){
testSuite.getTestCaseAt(n).getTestStepByName("MyTestStep").setDisabled(true)
}
}
for(n in (0..totalTestCases-1)) {
if (testSuite.getTestCaseAt(n).getTestStepByName("MyTestStep")){
testSuite.getTestCaseAt(n).getTestStepByName("MyTestStep").setDisabled(true)
}
}
No comments:
Post a Comment