Forum Discussion
What are you wanting to save? The response of each test ran via the test using each XML file?
- RD616657 years agoNew Contributor
Hi,
Yes, my requirement is to have the XML Response files being saved in a folder or directory location.
It would be best if the output files saved use the same request name or a way to identify for which request the corresponding response is being saved.
Thanks for your proactive follow-up,
Rahul
- groovyguy7 years agoChampion Level 1
When I have had to deal with this before, I've made use of a groovy script assertion that scrapes the Response from the test and saves it. You could append either a time stamp or a relevant/unique piece of data from the request or response to the file name to keep track of which request the response is tied to.
- RD616657 years agoNew Contributor
Hi Lead,
Is it possible for you to share the script which I can use as a reference to write my own as I don't have any background on Groovy.
Thanks again for your quick response.
Regards,
Rahul
Related Content
- 8 years agojscorzelli