aboutsummaryrefslogtreecommitdiffstats
path: root/www/sahi/files/sahi.sh.in
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2012-08-08 14:07:32 +0800
committernivit <nivit@FreeBSD.org>2012-08-08 14:07:32 +0800
commite4f8752eed369b580a177718179d4dd65ea01a6d (patch)
tree6859fda5e8124a817fbfdd4c2a2f79606fae82bd /www/sahi/files/sahi.sh.in
parent6089e659fa8dbe5e013ae57e5cdb97a22ad750b2 (diff)
downloadfreebsd-ports-gnome-e4f8752eed369b580a177718179d4dd65ea01a6d.tar.gz
freebsd-ports-gnome-e4f8752eed369b580a177718179d4dd65ea01a6d.tar.zst
freebsd-ports-gnome-e4f8752eed369b580a177718179d4dd65ea01a6d.zip
Sahi is an automation tool to test web applications. Sahi injects
javascript into web pages using a proxy and the javascript helps automate web applications. Sahi is a tester friendly tool. It abstracts out most difficulties that testers face while automating web applications. Some salient features include excellent recorder, platform and browser independence, no XPaths, no waits, multithreaded playback, excellent Java interaction and inbuilt reporting. WWW: http://www.sahi.co.in/w/sahi
Diffstat (limited to 'www/sahi/files/sahi.sh.in')
-rw-r--r--www/sahi/files/sahi.sh.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/sahi/files/sahi.sh.in b/www/sahi/files/sahi.sh.in
new file mode 100644
index 000000000000..fcdf625e47b7
--- /dev/null
+++ b/www/sahi/files/sahi.sh.in
@@ -0,0 +1,20 @@
+#!/bin/sh
+if [ ! -d ${HOME}/.sahi ] && [ -z "${SAHI_USERDATA_DIR}" ]; then
+ cp -r %%DATADIR%%/userdata ${HOME}/.sahi
+ chmod u+w ${HOME}/.sahi/config/*
+ export SAHI_USERDATA_DIR=${HOME}/.sahi
+fi
+
+if [ -z "${BROWSER}" ]; then
+ export BROWSER=%%BROWSER%%
+fi
+
+if [ -z "${http_proxy}" ]; then
+ export http_proxy=http://localhost:9999
+fi
+
+if [ -z "${SAHI_USERDATA_DIR}" ]; then
+ export SAHI_USERDATA_DIR=${HOME}/.sahi
+fi
+
+exec /usr/bin/env JAVA_HOME=%%JAVA_HOME%% ${SAHI_USERDATA_DIR}/bin/start_dashboard.sh