My motive is to assert the response from a JDBC call with an XML document which I have stored in 'Properties' test step. I need to validate some values.
I am trying to use Script type assertions for the JDBC Test step in SoapUI 5.2.1. I have previously created script type assertions for 'SOAP Request' Test steps too and they work fine. In case of JDBC, when I use :
def testCase = messageExchange.modelItem.testCase;
I get the error
"Cannot get property 'modelItem' on null object".
The same thing was used on a script assertion at a SOAP Request and it worked fine. Somehow, the implicit object 'messageExchange' is not available only for a JDBC Test step and it throws an NPE.