Forum Discussion
cyw
7 years agoNew Contributor
I used a workaround.
I placed the Response in the 'Script' tab.
I moved the Groovy code to compress it into an external groovy function.
Then, I packaged the response and set it to the mockResponse.
For example..
String response= """ <Start> ... <Compress>abcdefg</Compress> <SomeOtherStuff/> </Start> """ def newResponse = Utility.compress(response)
context.mockResponse.setResponseContent(newResponse)
This way, I can see the full Response. The Utility.compress function that I wrote, will leave everything as is, and just compress what needs to be compressed. Hope this helps
Related Content
Recent Discussions
- 5 days ago