Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
You can do this in a Groovy script in your TestCase:
You can refer to the API: http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/teststeps/WsdlTestRequest.html
http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/teststeps/RestTestRequest.html
Regards,
Giscard
SmartBear Support
You can do this in a Groovy script in your TestCase:
for(testStep in context.testCase.getTestStepList())
{
if(testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequest)
{
//do something with the testStep
}
}
//for a REST Request use this in the if statement:
testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest
You can refer to the API: http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/teststeps/WsdlTestRequest.html
http://www.soapui.org/apidocs/com/eviware/soapui/impl/wsdl/teststeps/RestTestRequest.html
Regards,
Giscard
SmartBear Support