Forum Discussion

Brandon_C's avatar
Brandon_C
Occasional Contributor
15 years ago

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

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    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