Applies to ReadyAPI 3.3.1, last modified on August 11, 2020
You can use Groovy scripts to work with various entities on all available project levels.
This topic describes how to use a Groovy script to access SOAP operations and REST resources.
There are several ways to run this script:
The following code demonstrates how to access the
login rq SOAP operation in the sample SOAP project.
// Accessing the interface.
myInterface = testRunner.testCase.testSuite.project.getInterfaceByName("ServiceSoapBinding")
// Accessing the operation.
myOperation = myInterface.getOperationByName("login")
// Accessing the request.
myRequest = myOperation.getRequestByName("login rq")
Groovy Script Test Step
Setup, TearDown, and Report Scripts