Hi,
Please see this article:
http://www.soapui.org/Scripting-Propert ... -datasinksIn section 2.1, the 2nd example shows how you can retrieve the response of a test request using property expansion that you can build using the right-click functionality "Get Data..."
Below is an example you can use to iterate through the applicable assertions that you need to check and build your logic to save the response as applicable:
def testcase = testRunner.testCase
for (i in testcase.getTestStepsOfType(com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep )){
for( assertion in i.assertionList )
{
log.info "Assertion [" + assertion.label + "] has status [" + assertion.status + "]"
}
}
Regards,
Giscard
SmartBear Support