Forum Discussion
Hi kingsmartbear,
Thank you for the post. The following topics could be useful for you:
- https://community.smartbear.com/t5/SoapUI-Pro/Resolved-Unable-to-save-raw-response-and-request-xml-file/td-p/35844/highlight/true
- https://community.smartbear.com/t5/SoapUI-Pro/Groovy-Script-Save-Raw-Request/m-p/40161
- https://community.smartbear.com/t5/SoapUI-Pro/Structured-logging-of-the-results-using-EventHandler/m-p/141118#M31715
Also, I know that some users use the following approach:
They add a local testcase property, for example 'rawresponse' and use the following Groovy script:
myRequestStep = testRunner.testCase.getTestStepByName('MyTestStep') def GetrequestData = new String(myRequestStep.testRequest.messageExchange.rawRequestData) def GetresponseData = new String(myRequestStep.testRequest.messageExchange.rawResponseData) testRunner.testCase.setPropertyValue( "rawresponse", somGetresponseData)