soapman
16 years agoOccasional Contributor
"mockRequest.requestContent" in onRequest script returns nothing
I have the following simple code in the onRequest script of the mock service:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def holder = groovyUtils.getXmlHolder(mockRequest.requestContent)
When I run the test case, it complains that mockRequest is comming back as null. However I can manually see the request message in the MockService UI.
I am testing locally on my PC, so the endpoint for my testcase is, for example, http://mypc:8080/
Any ideas? This is driving me crazy!
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def holder = groovyUtils.getXmlHolder(mockRequest.requestContent)
When I run the test case, it complains that mockRequest is comming back as null. However I can manually see the request message in the MockService UI.
I am testing locally on my PC, so the endpoint for my testcase is, for example, http://mypc:8080/
Any ideas? This is driving me crazy!