Forum Discussion
Lens
17 years agoOccasional Contributor
Hi Arun,
You can use following script to save your response to a xml-file.
def File = New PrintWriter ("C:/.../response.xml")
def Response = testRunner.testCase.testSteps["aaa"].testRequest.response.contentAsString
File.println(Response)
File.flush()
File.close()
"aaa" reflect to the name of your test step Test Request.
Regards,
Benny
You can use following script to save your response to a xml-file.
def File = New PrintWriter ("C:/.../response.xml")
def Response = testRunner.testCase.testSteps["aaa"].testRequest.response.contentAsString
File.println(Response)
File.flush()
File.close()
"aaa" reflect to the name of your test step Test Request.
Regards,
Benny