Forum Discussion

barnash's avatar
barnash
Occasional Contributor
15 years ago

Running several projects with SoapUIMockServiceRunner (command line)

Hi,
I want to run several mocks from different project files using the command line runner.
I'm using linux, and it's important that the mocks will all run on the same port (so I can't just run each project on a different port).
The problem is it doesn't seem to be possible using the mockservicerunner.sh script.

I have many projects and I don't want to put all my mocks in one project xml file.
Does anyone have any ideas on how to do this?

Thanks in advance,
barnash

4 Replies

  • rmanna's avatar
    rmanna
    New Contributor
    Hello,

    Did you ever figure out how to resolve this?

    Ralph
  • barnash's avatar
    barnash
    Occasional Contributor
    Unfortunately not.
    I did see something else. On SoapUI 3.0.1 there is a feature called: Deploy as WAR.
    Have a look here:
    http://www.soapui.org/new_and_noteworth ... _1_Release
    I didn't really get a chance to try it, but you can try. Also, if you use an older version of SoapUI, there is another link you might find useful:
    http://www.eviware.com/blogs/oleblog/?p=110

    If you will be able to make a war file of your mocks, it will solve your problem for sure - tomcat is much easier to run and monitor then the soapui mocks runner, so if you can create a war, just deploy it on a tomcat and problem solved.

    I hope this will solve your problem.

    barnash
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    The deploy-as-war feature is on the project level, so you will have to create one war-per-project..

    regards!

    /Ole
    eviware.com
  • rmanna's avatar
    rmanna
    New Contributor
    Thanks I appreciate the response.  I'll give it a try.