Forum Discussion
Elsevier_-_OH_S
11 years agoContributor
On that request add Script Assertion,
http://www.soapui.org/Functional-Testin ... tions.html
Code: Select all
//Right click > Get Data get the specific node from response,
def value = context.expand( '${REST Test Request#ResponseAsXml#//GeocodeResponse[1]/result[1]/address_component[1]/long_name[1]}' )
//Save it in a testcase property
testRunner.testCase.setPropertyValue( "Testcase_property_name",value )
I am getting an error for this no such prroperty for testRunner class
http://www.soapui.org/Functional-Testin ... tions.html
Code: Select all
//Right click > Get Data get the specific node from response,
def value = context.expand( '${REST Test Request#ResponseAsXml#//GeocodeResponse[1]/result[1]/address_component[1]/long_name[1]}' )
//Save it in a testcase property
testRunner.testCase.setPropertyValue( "Testcase_property_name",value )
I am getting an error for this no such prroperty for testRunner class