Squish4RunTestCase.sh 775 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. SQUISHSERVER=$1
  3. SQUISHRUNNER=$2
  4. TESTSUITE=$3
  5. TESTCASE=$4
  6. AUT=$5
  7. AUTDIR=$6
  8. SETTINGSGROUP=$7
  9. $SQUISHSERVER --stop > /dev/null 2>&1
  10. echo "Adding AUT... $SQUISHSERVER --settingsGroup $SETTINGSGROUP --config addAUT $AUT $AUTDIR"
  11. $SQUISHSERVER --settingsGroup "$SETTINGSGROUP" --config addAUT "$AUT" "$AUTDIR" || exit 255
  12. # sleep 1
  13. echo "Starting the squish server... $SQUISHSERVER --daemon"
  14. $SQUISHSERVER --daemon || exit 255
  15. # sleep 2
  16. echo "Running the test case...$SQUISHRUNNER --settingsGroup $SETTINGSGROUP --testsuite $TESTSUITE --testcase $TESTCASE"
  17. $SQUISHRUNNER --settingsGroup "$SETTINGSGROUP" --testsuite "$TESTSUITE" --testcase "$TESTCASE"
  18. returnValue=$?
  19. echo "Stopping the squish server... $SQUISHSERVER --stop"
  20. $SQUISHSERVER --stop
  21. exit $returnValue