Validation of an asynchronous request to mockservice
- 9 years ago
Hi,
Are you still working on this?
It sounded like you have something like this:
SoapUI TestStep -> Your service
Your Service -> Mock (where you want to validate the payload)
Is it that you want to validate the callback inside the mock? If so, rather than using a mock, had you considered a SOAP Mock Request TestStep? (these can use assertions)
Regards,
Rupert
- 9 years ago
Ok, hopefully we can work through it.
So, to configure it you need to supply a port and context to listen on. Then when the TestCase runs, the mock response test step will start to listen on localhost+port+path specified and wait until it receives the callback request. You set the path & port to match the call back url that is passed to your service in the original request. When a the mock response test step receives a request it will despatch a response (as specified in the mock response test steps editor on the right) - i dont think there's a way to prevent this response.
Does that make more sense?
Regards,
Rup