Forum Discussion
pandap
13 years agoContributor
Hi Manne,
I created event handler for "TestRunListener.afterStep" and added following code to save the raw request/response data.
filePath = "C:/SOAPUI/LOGS/TestResults/"
fos = new FileOutputStream( filePath + testStepResult.testStep.label + ".txt", true )
pw = new PrintWriter( fos )
testStepResult.writeTo( pw )
pw.close()
fos.close()
When I run the test case I get the request and response saved to the file but when I create a load test and run following message printed in the output file.
Status: OK
Time Taken: 5636
Size: 600
Timestamp: Wed Oct 16 13:55:34 EDT 2013
TestStep: 3.EIP_MeterReadWS
Result has been Discarded!
----------------- Properties ------------------------------
---------------- Request ---------------------------
<discarded>
---------------- Response --------------------------
- missing response / garbage collected -
I created event handler for "TestRunListener.afterStep" and added following code to save the raw request/response data.
filePath = "C:/SOAPUI/LOGS/TestResults/"
fos = new FileOutputStream( filePath + testStepResult.testStep.label + ".txt", true )
pw = new PrintWriter( fos )
testStepResult.writeTo( pw )
pw.close()
fos.close()
When I run the test case I get the request and response saved to the file but when I create a load test and run following message printed in the output file.
Status: OK
Time Taken: 5636
Size: 600
Timestamp: Wed Oct 16 13:55:34 EDT 2013
TestStep: 3.EIP_MeterReadWS
Result has been Discarded!
----------------- Properties ------------------------------
---------------- Request ---------------------------
<discarded>
---------------- Response --------------------------
- missing response / garbage collected -