Forum Discussion
Hi,
You can access any public scope properties on SoapUI objects e.g. Projects, TestCases using Groovy scripts etc.
Some examples are:
Accessing the project name from within a Groovy TestStep:
testRunner.testCase.testSuite.project.name
A bit more complicated example again from within a Groovy TestStep:
import com.eviware.soapui.impl.wsdl.WsdlInterface
myInterface = (WsdlInterface) testRunner.testCase.testSuite.project.getInterfaceByName("SampleServiceSoapBinding")
myOperation = myInterface.getOperationByName("login")
myRequest = myOperation.getRequestByName("Request 1")\
These snipets were taken from http://www.soapui.org/scripting---properties/tips---tricks.html
You may find the API docs helpful in working out methods/properties that you can call http://www.soapui.org/apidocs/index.html
Is this what you meant?
Cheers,
Rupert