|
Answer» Hi
I want to run all the test cases in all the test suites of all the projects in one click in SOAPUI. I want to write the RESULTS in a file. i.e. want to generate a report for all the projects. I have written a .bat file with below content. But this is EXECUTING only first command and creating only one that is ProjectName1.txt file. Please help.
"C:\Program Files\eviware\soapUI-3.6.1\bin\testrunner.bat" -s"TestSuiteName1" -r -a -J -fC:\Dev\reports -I C:\TestSuites\ProjectName1-soapui-project.xml > ProjectName1.txt "C:\Program Files\eviware\soapUI-3.6.1\bin\testrunner.bat" -s"TestSuiteName2" -r -a -j -fC:\Dev\reports -I C:\TestSuites\ProjectName2-soapui-project.xml > ProjectName2.txt
Thanks.In your batch, in the first line you hand over control PERMANENTLY to testrunner.bat. Control will never come back. In a batch if you want to run another batch and get control back, you use the CALL statement.
Code: [SELECT]CALL "C:\Program Files\eviware\soapUI-3.6.1\bin\testrunner.bat" -s"TestSuiteName1" -r -a -j -fC:\Dev\reports -I C:\TestSuites\ProjectName1-soapui-project.xml > ProjectName1.txt CALL "C:\Program Files\eviware\soapUI-3.6.1\bin\testrunner.bat" -s"TestSuiteName2" -r -a -j -fC:\Dev\reports -I C:\TestSuites\ProjectName2-soapui-project.xml > ProjectName2.txt
|