Forum Discussion
Lens
15 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
Related Content
- 7 years agoHappyRandom
- 6 years agopankajmalinda
Recent Discussions
- 2 days agoemoya
- 2 days agoMyBalanceNow