Forum Discussion
SmartBear_Suppo
Alumni
12 years agoHi,
Use the event handler RequestFilter.afterRequest with the code below to write the response to a file as XML and then use a data source to read the file.
Regards,
Marcus
SmartBear Support
Use the event handler RequestFilter.afterRequest with the code below to write the response to a file as XML and then use a data source to read the file.
File file = new File("C:\\write_response.xml")
file.text = context.httpResponse.getContentAsXml()
Regards,
Marcus
SmartBear Support