Forum Discussion

divman's avatar
divman
Contributor
12 years ago

[Res] Batch file issue

Hi,

I have 30+ projects which has more than 70 Test Suites. I am trying to automate through a ".Bat" file, so that i can just do one "double-click" instead of opening a soapui, project, test suite and click on the play button on all. I tried creating a batch file (as a sample) for two test suites, but at any cast, only one suite is running when i run the batch. My .bat file looks like below.

@echo ON

cd\
cd "Program Files"
cd "SmartBear"
cd "SoapUI-4.6.4"
cd "Bin"

testrunner.bat -sAcctHoldInq -cHolds_Inquiry_Testcase -r -f"C:\Xpress\Xpress_Regression_Scripts\TestRunner Results" "C:\Xpress\Xpress_Regression_Scripts\Holds Inquiry\Holds-Inquiry---Groovy-Automation-soapui-project.xml" >> error.txt
testrunner.bat -s"SplInstInq TestSuite" -c"SplInstInq TestCase" -f"C:\Xpress\Xpress_Regression_Scripts\TestRunner Results" "C:\Xpress\Xpress_Regression_Scripts\Special Instruction Inquiry\XES-SplInsInq-soapui-project.xml" >> error.txt

...[and more testrunner.bat lines with respective projects]...

pause


When i run, only the first line of "testRunner.bat....." is called and executed and closes the command prompt. All the remaining lines which in-turn other consecutive testRunner.bat is not called. When i check the error.txt file, i am not seeing any erros too.

I am new to this. Am i missing something here? Could anyone help me?