Ask a Question

continuous mock response handling

AndiKoll
Contributor

continuous mock response handling

Hi,

i try to set up the following test case:
- delay 1ms
- mock response (receiving a soa request and answering with a response), Start Step set to "delay 1ms"
- groovy script which checks the content of the request and loops to the mock resonse until the request contains specific parameter values.

The problem:
when a request has been answered the system under test sends the next request immediately afterwards.
This second request will be answered with the following response:

HTTP/1.1 200 OK
Content-Type: text/html; charset=iso-8859-1
Transfer-Encoding: chunked
Server: Jetty(6.1.x)

5F
<html><body><p>There are currently 0 running soapUI MockServices</p><ul></ul></p></body></html>
0

How can I set up the test case to continuousely handle all requests or how can I avoid sending the response above?

Greetings
Andi
1 REPLY 1
SmartBear_Suppo
SmartBear Alumni (Retired)

Hi,

You might have to use a MockService for that. You can programatically start the MockService when the test starts using a Groovy script. The MockService can handle each incomming request and do the validation of it in the onRequest script.

Regards,
Dain
SmartBear Software

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: