Forum Discussion
grooves
13 years agoOccasional Contributor
mrJames wrote: Hi,
Please see the link below:
http://stackoverflow.com/questions/1224 ... -in-soapui
A mock request would probably accomplish this.
Thanks, stumbled onto this thread too but the solution only simulates a timeout for the client, not for the webservice?
mrJames wrote: If you are a SoapUI Pro user this can be achieved by the setting the code snippet below in the RequestFilter.afterRequest event handler.
Thread.currentThread().sleep(1000) //will sleep for 1000 miliseconds i.e 1 second.
Here is a link on event handlers:
http://www.soapui.org/Scripting-Propert ... dlers.html
This may do the trick but I'm unfortunately not a Pro user...yet.
Anyway, the schema allowed unbounded elements so I ended up creating a ridiculously large request and set the timeout very short on the server.