Forum Discussion

marquis's avatar
marquis
Occasional Contributor
11 years ago

help please~~starting mock service by script

hi, i'm trying to start my mockservice by script. i used the example http://www.soapui.org/Test-Automation/m ... vices.html.

however no service is running. it just stopped very quickly.

do I miss anything here?



c:\Program Files\SmartBear\soapUI-4.6.0\bin>mockservicerunner.bat -m"IOrderServi
ce MockService" "C:\Users\aaa\Documents\playready-soapui-project.xml"
soapUI 4.6.0 MockService Runner
Configuring log4j from [c:\Program Files\SmartBear\soapUI-4.6.0\bin\soapui-log4j
.xml]
15:52:21,305 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\User
s\houy\soapui-settings.xml]
15:52:22,425 INFO [WsdlProject] Loaded project from [file:/C:/Users/aaa/Docume
nts/playready-soapui-project.xml]
15:52:22,810 INFO [SoapUIMockServiceRunner] Running MockService [IOrderService
MockService] in project [playready]
15:52:22,811 INFO [SoapUIMockServiceRunner] Press any key to terminate
15:52:22,812 INFO [SoapUIMockServiceRunner] Started 0 runners
Press any key to terminate...
15:52:23,814 INFO [SoapUIMockServiceRunner] time taken: 1002ms

3 Replies

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
     Started 0 runners

    Are you sure you provide the correct name of the MockService? (-m"IOrderServi
    ce MockService")
  • marquis's avatar
    marquis
    Occasional Contributor
    redfish4ktc2 wrote:
     Started 0 runners

    Are you sure you provide the correct name of the MockService? (-m"IOrderServi
    ce MockService")


    You are quite right. after I used the right name, it worked perfectly.

    Thank you very much for your help.