Forum Discussion

easyfish's avatar
easyfish
Contributor
8 years ago
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 ...
  • nmrao's avatar
    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
    	}
    }