Squish4RunTestCase.bat 629 B

123456789101112131415161718192021222324
  1. set SQUISHSERVER=%1
  2. set SQUISHRUNNER=%2
  3. set TESTSUITE=%3
  4. set TESTCASE=%4
  5. set AUT=%5
  6. set AUTDIR=%6
  7. set SETTINGSGROUP=%7
  8. %SQUISHSERVER% --stop
  9. echo "Adding AUT... %SQUISHSERVER% --config addAUT %AUT% %AUTDIR%"
  10. %SQUISHSERVER% --config addAUT "%AUT%" "%AUTDIR%"
  11. echo "Starting the squish server... %SQUISHSERVER%"
  12. start /B %SQUISHSERVER%
  13. echo "Running the test case...%SQUISHRUNNER% --testsuite %TESTSUITE% --testcase %TESTCASE%"
  14. %SQUISHRUNNER% --testsuite "%TESTSUITE%" --testcase "%TESTCASE%"
  15. set returnValue=%ERRORLEVEL%
  16. echo "Stopping the squish server... %SQUISHSERVER% --stop"
  17. %SQUISHSERVER% --stop
  18. exit /B %returnValue%