Forum Discussion
nmrao
Champion Level 3
Have you started the mock service?
Have you send the request?
Have you send the request?
kjdivya
8 years agoOccasional Contributor
Yes, Mock is started and Request is sent from Postman
- nmrao8 years agoChampion Level 3Ok, strange.
May be you take a look the sample rest project with mock service below, have a look at it to see if that helps.
https://github.com/nmrao/sample-soapui-projects/tree/master/rest_sample- kjdivya8 years agoOccasional Contributor
Hi,
I think question is misunderstood. The example which is attached in Github is very basic GET request, which works for me. But the problem is I need to read the PUT request content in my mock. PUT request from my SUT can send either pass or fail status in metadata parameter to my mock. So, in mock I am try to read the PUT request content on PUT action using
def requestBody = mockRequest.getRequestContent()
log.info "Request body: " + requestBodyOn sending PUT request from Postman, I am getting "null" output. So, I want to understand whether is there any wrong in my procedure.
Thanks in advance.
Related Content
- 8 years ago
Recent Discussions
- 15 days ago
- 22 days ago