Forum Discussion

NYefimov's avatar
NYefimov
Occasional Contributor
15 years ago

running more than 1 project at once from command line

seems like should be easy but it does not work
...
The below batch file is located in the BIN folder under SOAPUI installation folder. I am trying to to run 2 projects there: AccountManagement\AccountManagement-soapui-project.xml and LookupService-soapui-project.xml
I am using testrunner.bat file in both line.

Expect: both projects are executed
Actual: ONLY first project got executed (properly)

Could you, please, help?

runAccountManagement_Lookup.bat:
rem ********* soapui project starts ***********

testrunner.bat "C:\Workspace\Automation\soapUI_Scripts\Neon\Integration_Environment\AccountManagement\AccountManagement-soapui-project.xml" -t"C:\Workspace\Automation\soapUI_Scripts\Neon\Localhost_Environment\Neon-localhost-soapui-settings.xml" -j -f"C:\temp\results"

testrunner.bat "C:\Workspace\Automation\soapUI_Scripts\Neon\Integration_Environment\Lookup\LookupService-soapui-project.xml" -t"C:\Workspace\Automation\soapUI_Scripts\Neon\Localhost_Environment\Neon-localhost-soapui-settings.xml" -j -f"C:\temp\results"

rem ********* soapui Lookup project finished *********

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    You should add "call" in front of every testrunner.bat command in your new bat file, this will cause inner bat file to return control to outer bat file instead of just exit. So, you should have


    ...
    call testrunner.bat ..."Project one"...
    ...
    call testrunner.bat ..."Project two"...
    ...


    Regards,

    Dragica
    /eviware.com