Saturday, November 22, 2014

Print Testcase name and Teststep names in SoapUI with Groovy Script

import com.eviware.soapui.impl.wsdl.teststeps.*
def i=0;
for( testCase in testRunner.testCase.testSuite.getTestCaseList() ) {
    for( testStep in testCase.getTestStepList() ) {
        if( testStep instanceof WsdlTestRequestStep ) {
        log.info i++ +"Name of testcases in this suite: " +"[" +testCase.getLabel() +"]" +" Name of the
        WSDL step is " +testStep.getName();
        }
    }
}

No comments:

Post a Comment