Bavoux_Jean-Bap
17 years agoOccasional Contributor
Simulate "no reply"
Hello,
I've created a service mock based on a wsdl file. It 's work and SOAPui was very easy to do that.
Now I'd like, that in some case, the mock doesn't send any reply.
I've created a groovy script that can easyly choose a reply, but I didn't find how to choose "no reply".
The only solution I've found, is to do a sleep that is longer than my client timeout.
It seemed to be fine ( works on a single request), but the sleep seems to "freeze" my mock.
If I try to send other request while , the first request has triggered the sleep method, my mock does not reply! Even if I want to stop my mock, I had to wait the end of the sleep.
Questions:
- is there a "nicer" way to prevent the mock for replying ( maybe return a special string in my groovy_script)
- why my others request seem to be blocked by the first one. isn't SOAPui multithread?
Thanks
I've created a service mock based on a wsdl file. It 's work and SOAPui was very easy to do that.
Now I'd like, that in some case, the mock doesn't send any reply.
I've created a groovy script that can easyly choose a reply, but I didn't find how to choose "no reply".
The only solution I've found, is to do a sleep that is longer than my client timeout.
It seemed to be fine ( works on a single request), but the sleep seems to "freeze" my mock.
If I try to send other request while , the first request has triggered the sleep method, my mock does not reply! Even if I want to stop my mock, I had to wait the end of the sleep.
Questions:
- is there a "nicer" way to prevent the mock for replying ( maybe return a special string in my groovy_script)
- why my others request seem to be blocked by the first one. isn't SOAPui multithread?
Thanks