Forum Discussion

sujith's avatar
sujith
New Contributor
8 years ago

Starting Soap Ui mock Service for certain time

Hi All,

 

I want to Start the Soap UI from Command Line I can start it but it will be waiting for me to press the Key to Terminate the Mock Service.

 

but I want it to be started itself and then after I run some tests through my Test Frame work, I want to stop the mock service from the Command Line.

 

Or I want to run the Mock service from Command Line for some time say 5 mins

 

Is it possible to do the above 2 ways?

 

Thanks,

Sujith.

4 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Do you want to extend the API and change the behaviour?
    • sujith's avatar
      sujith
      New Contributor

       

      Hi,

       

      I am not sure but using the Command Line like below

       

      mockservicerunner.bat -m "IOrderSerhghvice MockService" "C:\Documents and Settings\Ole Matzura\My Documents\demo2-soapui-project.xml"

       

      I can start the mock service.

       

      but when I started it starts and keep waiting for Press nay key to continue to terminate the Service.

       

      rather than that what I want is it can start and finish the Task then I can run another command line to stop the mock service or if we can start the mock service for some time Interval.

       

      Is this Possible?

       

      Thanks,

      sujith.

      • nmrao's avatar
        nmrao
        Champion Level 3
        That is right, because it is meant to be run in that way.

        Even if an application is deployed in a web / application server, they continue to wait in order to serve the client request any time as they arrive.

        That is why I was asking if you want to change the behaviour, it needs to be extended to cater your needs.