Ask a Question

Re: SoapUI Automation question

Brandon_C
Occasional Contributor

Re: SoapUI Automation question

Hello,

I want to be able to start/stop my mock service via ANT for automated testing.


I want to use mockrunner. (http://www.soapui.org/userguide/command ... unner.html) however, it does not look like it can be stopped by a ANT task. Mockrunner requires human interaction to press the return Key to stop the services.

The desired flow is as follows -
Call a ANT task to start the services.
Call a ANT task to run testRunner.sh.
Then call another ANT task to stop the mock services.

Is something like this possible?
1 REPLY 1

Re: SoapUI Automation question

Hi,

There is an undocumented feature that let you stop or restart the mock service. This is dome by sending a HTTP request to the mock service with a query parameter, either "?cmd=stop" or "?cmd=restart". You can do this using the ANT task "get":


<get src="http://<your mock service>?cmd=stop" dest="/dev/null" />


Regards,
Dain
eviware.com

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: