tags:

views:

20

answers:

1

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

A: 

This can be achieved with the following Groovy code:

mockRequest.getHttpResponse().sendError(500)
Markus