easyfish
8 years agoContributor
Solved
how to count pure SOAP request test steps
Hello! Under my test case, I have data sources, SOAP requests,groovy scripts. With testCase.testStepCount, I count all the steps. I am wondering how to get the pure SOAP request number without ...
- 8 years ago
Here is the groovy script which only log the step name if test step is a soap request type
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep log.info context.testCase.testStepCount (0..context.testCase.testStepCount-1).each{ def step = context.testCase.testStepList[it] if ( step instanceof WsdlTestRequestStep) { log.info step.name } }