Retrieve response from a “Run Test Step”, using SoapUI/ Groovy

groovysoapuitesting

In SoapUI, I have a host Test Case, which executes another external Test Case (with several test steps) using the "Run Test Case" test step. I need to access a response from the external TC from within my host TC, since I need to assert on some values.

I cannot transfer the properties since they are in XML. Could I get some pointers as to how I could leverage Groovy/SoapUI for this.

Best Answer

For Response you can use the below code.

testRunner.testCase.getTestStepByName("test step").testRequest.response.responseContent
Related Topic