diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-04-04 12:24:38 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@people01.fedoraproject.org> | 2011-04-05 21:21:54 +0000 |
commit | 86995509a1d29497fb1c95f810337a567e1d5634 (patch) | |
tree | b6b8bcf3801f4a88f3a39544d0323b77e3f8686e /install/ui/test/bin/selenium.sh | |
parent | deaf029023e4037ad53d17b9e48562845b3c1197 (diff) | |
download | freeipa-86995509a1d29497fb1c95f810337a567e1d5634.tar.gz freeipa-86995509a1d29497fb1c95f810337a567e1d5634.tar.xz freeipa-86995509a1d29497fb1c95f810337a567e1d5634.zip |
Added functional test runner.
Diffstat (limited to 'install/ui/test/bin/selenium.sh')
-rwxr-xr-x | install/ui/test/bin/selenium.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/install/ui/test/bin/selenium.sh b/install/ui/test/bin/selenium.sh index 034b1df6f..bd37238e6 100755 --- a/install/ui/test/bin/selenium.sh +++ b/install/ui/test/bin/selenium.sh @@ -1,6 +1,5 @@ #!/bin/sh - TEST_SUITE=$1 TEST_RESULTS=$2 @@ -10,17 +9,21 @@ then exit 1 fi -if [ ! -f $TEST_SUITE ] +if [ ! -f "$TEST_SUITE" ] then echo "Error: Test suite $TEST_SUITE not found." exit 1 fi -PROFILE_DIR=$HOME/.mozilla/firefox -PROFILE=`ls $PROFILE_DIR | grep .default` -PROFILE_TEMPLATE=$PROFILE_DIR/$PROFILE +PROFILE_DIR="$HOME/.mozilla/firefox" +PROFILE=`ls "$PROFILE_DIR" | grep .default` +PROFILE_TEMPLATE="$PROFILE_DIR/$PROFILE" -java -jar /usr/share/java/selenium-server-standalone.jar -firefoxProfileTemplate $PROFILE_TEMPLATE -htmlSuite "*firefox" "http://localhost" $TEST_SUITE $TEST_RESULTS +# Run Selenium Test +java -Djava.util.logging.config.file=conf/logger.properties\ + -jar /usr/share/java/selenium-server-standalone.jar\ + -firefoxProfileTemplate "$PROFILE_TEMPLATE"\ + -htmlSuite "*firefox" "http://localhost" "$TEST_SUITE" "$TEST_RESULTS" # Kill Firefox -ps -ef|grep -i firefox|grep '\-profile'|awk '{print $2;}'|xargs kill -9 +ps -ef|grep -i firefox|grep '\-profile'|awk '{print $2;}'|xargs kill |