This is a collection of SoapUI projects and Groovy Scripts used to demonstrate the Groovy scripting capabilities in soapUI
- Use
log.info <variable>
to get the class of a variable, such as thetestRunner
. Then you can refer to this class in the SoapUI API documentation. - Use the Groovy shortcut notation for getters and setters. For example, use
testRunner.testCase
instead oftestRunner.getTestCase()
andproject.abortOnError = true
instead ofproject.setAbortOnError(true)
(Read more)