Solved
Forum Discussion
sonya_m
SmartBear Alumni (Retired)
Sirisha2020
4 years agoContributor
Hi Himanshu,
i am able to write the response to a document. But i am trying to update the request to a separate word document it is not saving the request along with the time stamp to the word document. Please find the code as below :
def rawRequest = JsonOutput.prettyPrint(request);
def file1 = new File("C://Users//appu//Desktop//proj//groovy1.doc");
file1.write (rawRequest,"UTF-8");
I tried various ways to get the request but no luck. Also i want to save request and response along with time stamp.
Thanks.
Related Content
Recent Discussions
- 26 minutes agovloffet