bmambou
14 years agoNew Contributor
Creating REST testStep using groovy
Hi,
I am using SaouUI Pro and I'd like to create a testStep (fro REST) using groovy script only. Could you help me please ?
I tried this script found in the Online help to do so and still not working:
import com.eviware.soapui.impl.wsdl.WsdlInterface
myInterface = (WsdlInterface) testRunner.testCase.testSuite.project.getInterfaceByName("My_API")
myOperation = myInterface.getOperationByName("My_Method")
myRequest = myOperation.getRequestByName("Request 1")
Thanks in advance for your help.
I am using SaouUI Pro and I'd like to create a testStep (fro REST) using groovy script only. Could you help me please ?
I tried this script found in the Online help to do so and still not working:
import com.eviware.soapui.impl.wsdl.WsdlInterface
myInterface = (WsdlInterface) testRunner.testCase.testSuite.project.getInterfaceByName("My_API")
myOperation = myInterface.getOperationByName("My_Method")
myRequest = myOperation.getRequestByName("Request 1")
Thanks in advance for your help.