continuous mock response handling
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2012
11:15 PM
04-19-2012
11:15 PM
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
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2012
05:06 AM
04-24-2012
05:06 AM
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. ⬇️⬇️⬇️
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. ⬇️⬇️⬇️
