summaryrefslogtreecommitdiffstats
path: root/install/ui/test/bin/selenium.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/test/bin/selenium.sh')
-rwxr-xr-xinstall/ui/test/bin/selenium.sh17
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