Philippe_Marste
16 years agoNew Contributor
MockResponse support for HTTP
Does soapUI support or plan to support mocking of HTTP response?
The use case is following:
we expect the server to send soapUI on a specific HTTP port a HTTP request, based on which we want to mock specific HTTP responses. The dispatching of HTTP response would follow the same feature-set than soap response dispatching.
Basically, something very similar that already exists for SOAP but that would not depend on Interface/SOAP, but simply based on HTTP request content.
Let me know if this is planned in the near future, and how to achieve this using Groovy Script in the meantime. I already found a way to code in the onRequest script of the Mock Server some code to HARDCODE the HTTP response, but would prefer a full-fledged version like we have with SOAP, such as a MockHTTPResponse step (same as MockSoapResponse step).
Thanks and Regards,
Philippe
The use case is following:
we expect the server to send soapUI on a specific HTTP port a HTTP request, based on which we want to mock specific HTTP responses. The dispatching of HTTP response would follow the same feature-set than soap response dispatching.
Basically, something very similar that already exists for SOAP but that would not depend on Interface/SOAP, but simply based on HTTP request content.
Let me know if this is planned in the near future, and how to achieve this using Groovy Script in the meantime. I already found a way to code in the onRequest script of the Mock Server some code to HARDCODE the HTTP response, but would prefer a full-fledged version like we have with SOAP, such as a MockHTTPResponse step (same as MockSoapResponse step).
Thanks and Regards,
Philippe