I tried changing the mock action from "Sequence" to "Script". I then tried a very simple script, like the following:
mockRequest.httpResponse.status = 429
I then click the Play button, which when I was using "Sequence", this would just start the listener and wait for requests to come in. Instead, when I clicked the Play button, it immediately failed with:
com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; java.lang.NullPointerException: Cannot get property 'httpResponse' on null object
I then added a line like the following before this line:
log.info("mockRequest[" + mockRequest + "]")
When I clicked Play again, it printed this in the script log:
Sat Jan 18 08:53:24 PST 2020:INFO:mockRequest[null]
I am obviously missing some basic details in the setup of this.