18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
testrunner.bat: command not found
Hi,
I would like to ask for help. i was trying to run my script thru command line.
i even tried this sample suite.
testrunner.bat demo/demo.suite <url here> firefox
but it always returns this message:
testrunner.bat: command not found
please help!
thanks!
I would like to ask for help. i was trying to run my script thru command line.
i even tried this sample suite.
testrunner.bat demo/demo.suite <url here> firefox
but it always returns this message:
testrunner.bat: command not found
please help!
thanks!
Comments
please make sure you are starting the testrunner from the $SAHI_HOME/userdata/bin directory. First "cd" to that directory.
Then make sure that the file exists.
Regards
Wormi
yes, the file exists and I'm started at the correct path.
but when i try to run by including the path of testrunner...
HHH:~/sahi/userdata/bin$ /sahi/userdata/bin/testrunner.bat test.suite url firefox
it returns this error message:
bash: /sahi/userdata/bin/testrunner.bat: Permission denied
_______________
but when i use ubuntu and try to execute this:
HHH:~/sahi/userdata/bin$ /sahi/userdata/bin/testrunner.sh test.suite url firefox
this is the response:
test=scripts/test.suite
browserType=firefox
baseURL=url
host=localhost
port=9999
threads=5
useSingleSession=false
suiteName = scripts/test.suite
base = url
sahiHost = localhost
port = 9999
threads = 5
browserType = firefox
this.isSingleSession == false
Added shutdown hook.
ttp://localhost:9999/_s_/dyn/Suite_start?suite=scripts%2Ftest.suite&base=http%3A%2F%2%2Fema&threads=5&sahisid=sahi_0bbd0a17076b404eaa0ad250a2b5267be813&browserType=firefox&html=
Connection refused
Could not connect to Sahi Proxy.
you have to start the sahi.sh or the dashboard.sh beforehand to get the sahi proxy running. Make sure your sahi proxy is running and listening on port 9999
On windows.. you might change the permissions... I dont know how to do that with command line.. but rightcklick on the file -> properties should be helpful
Regards
Wormi
thanks wormi!!!
Hi,
I am new user and learnt many concepts from your site.
While working with test suite by following :
I have created a suite myapp.suite with 2 scripts
myapp.suite
sahiLogin.sah demo training url
bookCost.sah demo training url
sahiLogin.sah
_setValue(_textbox("user"), "test");
_assertExists(_submit("Login"));
_assert(_isVisible(_submit("Login")));
_assertEqual("Login", _getValue
(_submit("Login")));
bookCost.sah
_setValue(_textbox("q"), "2");
_setValue(_textbox("q[1]"), "3");
_setValue(_textbox("q[2]"), "4");
_click(_button("Add"));
_assertExists(_textbox("total"));
_assert(_isVisible(_textbox("total")));
_assertEqual("2600", _getValue(_textbox("total")));
commandline :
C:\Users\ks\sahi_pro\userdata\bin>testrunner.bat myapp.suite demo training url ie
Issue:
opens 2 browsers:
1. first browser runs the login success for sahiLogin.sah and fails at bookCost.sah and then closes both the browsers
2. Log exception:
_setValue(_textbox("q"), "2"); Error: The first parameter passed to _setValue was not found on the browser
Suite Info
a=a
baseURL=demo training url
browserOption=-noframemerging
browserPath=$ProgramFiles\Internet Explorer\iexplore.exe
browserProcessName=iexplore.exe
browserType=ie
failedScriptsSuite=scripts/last_failed_scripts.suite
host=localhost
isSingleSessionS=false
logsInfo=
port=9999
sahisid=sahi_3b198fbb061b70492308a8f096324ebd8a4d
suiteId=sahi_3b198fbb061b70492308a8f096324ebd8a4d
suitePath=scripts/myapp.suite
test=scripts/myapp.suite
threads=5
useSingleSession=false
useSystemProxyS=true
Please suggest
Thanks