Forum Discussion
singhtester
14 years agoContributor
Anand,
If you mean by saving response for a test, I am using the simpler way by adding groovy script as below:
def myOutFile = "C:/TEMP/webservice/Response/filename.xml"
def response = context.expand( '${testcasename#Response}' )
def f = new File(myOutFile)
f.write(response, "UTF-8")
Hope this will help.
Regards,
GS
If you mean by saving response for a test, I am using the simpler way by adding groovy script as below:
def myOutFile = "C:/TEMP/webservice/Response/filename.xml"
def response = context.expand( '${testcasename#Response}' )
def f = new File(myOutFile)
f.write(response, "UTF-8")
Hope this will help.
Regards,
GS