14 years ago
REST service as MockResponse?
I am trying to build some functional tests for some test services around SoapUI. Here is the basic scenario I am trying to test:
1. Send a request to a RESTful web service. The request parameters include a callback url.
2. Wait an indeterminate amount of time for a callback to be returned from the service.
Neither of these services are SOAP proper (there are no fancy WSDLs or WS-A mechanisms at play here). Basically, our services either make use of simple GET parameters or a simple XML payload sent via a GET callback.
I have this working in the sense that I can send a SOAPUI MockService url to my service using a Test Step and have verified that my MockService is getting a response back from the service. What I can't figure out is how to create a Test Step to somehow intercept this callback once it is received and return a pass or fail to my Test Case. Any ideas?
1. Send a request to a RESTful web service. The request parameters include a callback url.
2. Wait an indeterminate amount of time for a callback to be returned from the service.
Neither of these services are SOAP proper (there are no fancy WSDLs or WS-A mechanisms at play here). Basically, our services either make use of simple GET parameters or a simple XML payload sent via a GET callback.
I have this working in the sense that I can send a SOAPUI MockService url to my service using a Test Step and have verified that my MockService is getting a response back from the service. What I can't figure out is how to create a Test Step to somehow intercept this callback once it is received and return a pass or fail to my Test Case. Any ideas?