I am mocking my web service using soapUI. Now, I also want to test fault. For this, the mock service (=soapUI) should return a HTTP 500. Does anyone know, how soapUI can do this?
thanks
This can be achieved with the following Groovy code:
mockRequest.getHttpResponse().sendError(500)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With