JDM
3 years agoNew Contributor
Viewing or logging complete content of the incoming request to a REST MockService
Apologies for what's probably a very basic newbie question, but... I'm using SoapUI to create a REST MockService, for the purpose of doing QA on a product I'm testing. The product feature I need to...
- 3 years ago
After some searching I found two relevant answers in the above article.
1. If everything were working you would be able to display this information using the script command log.info mockRequest.requestContent
2. However not everything is working, this property returns null when processing a PUT request. This looks to be a very very old bug that is yet to be fixed (going back to 2014). But fortunately the same article's responses provide a workaround, a small block of script code that pulls the payload using a buffered reader object.