chuddy12345
11 years agoNew Contributor
How to log requests in a mock service
Hi there,
I have created a mock REST web service which will listen for requests.
I am using SoapUI 5.0.0.
When I open up the mock service I start it and can see the "knight Rider" progress bar thing which goes back and forth to say that the service is running...
I have also checked the "Enable" box so I can see the time, date and response time for each request that hits the mock service.
In older versions of SoapUI there use to be an option to actually audit the actual content of the request that comes in.
I could double click on one of the log entries and a box would open up with the content of the request.
Nothing happens when I double click this in 5.0.0... any ideas how this can be switched back on?
Thanks for help!
Chuddy12345
I have created a mock REST web service which will listen for requests.
I am using SoapUI 5.0.0.
When I open up the mock service I start it and can see the "knight Rider" progress bar thing which goes back and forth to say that the service is running...
I have also checked the "Enable" box so I can see the time, date and response time for each request that hits the mock service.
In older versions of SoapUI there use to be an option to actually audit the actual content of the request that comes in.
I could double click on one of the log entries and a box would open up with the content of the request.
Nothing happens when I double click this in 5.0.0... any ideas how this can be switched back on?
Thanks for help!
Chuddy12345
It's possible to log request by using "OnRequest Script" option in Mock Service Editor (I am using version 5.2.1)
Put following code in above option and the request content should be visible in "Script Log"
log.info(mockRequest.getRequestContent())