Saturday, November 22, 2014

How to Disable teststep within a test case in SoapUI with groovy script

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

No comments:

Post a Comment