Forum Discussion
NeverBackDown
14 years agoOccasional Contributor
Thanks for reply, but it does not work:
Error: com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; groovy.lang.MissingPropertyException: No such property: mockRunner for class: Script14
def holder = new com.eviware.soapui.support.XmlHolder( mockRequest.requestContent )
def a=mockRunner.mockService.testSuite.project.getPropertyValue('RegNO')
if (holder["//*:RegNo"]=='a')
return "Response 1"
else
return "MockResponse 2"
Error: com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; groovy.lang.MissingPropertyException: No such property: mockRunner for class: Script14