mpunjani
14 years agoOccasional Contributor
Automatically saving request and response files
Hi All,
I am using SoapUI Pro 3.6.1. I would like to automatically save all the request and response messages (executed) to any file (no matter which extension).
I found the script below (FYI I dont know anything about scripts or how they work)
filePath = 'c:/'
fos = new FileOutputStream( filePath + testStepResult.testStep.label + '.txt', true )
pw = new PrintWriter( fos )
testStepResult.writeTo( pw )
pw.close()
fos.close()
I closed my SoapUI project and restarted and ran a test request from one of the test suite. But there was no output file in C drive.
I think I will require some basic information here (step-by-step)
Can anyone please help?
Thanks
Mak
I am using SoapUI Pro 3.6.1. I would like to automatically save all the request and response messages (executed) to any file (no matter which extension).
I found the script below (FYI I dont know anything about scripts or how they work)
filePath = 'c:/'
fos = new FileOutputStream( filePath + testStepResult.testStep.label + '.txt', true )
pw = new PrintWriter( fos )
testStepResult.writeTo( pw )
pw.close()
fos.close()
I closed my SoapUI project and restarted and ran a test request from one of the test suite. But there was no output file in C drive.
I think I will require some basic information here (step-by-step)
Can anyone please help?
Thanks
Mak