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.
Unable to run test suite
Hi Team,
When I try to execute a test suite, it opens the browser and loads base url (whatever url specified in test suite) and stops there itself. It doesn't execute the test case steps. After some time it load page for second test case and stops without executing those steps.
The final report says that "JSERROR Script did not start within 130 seconds." Please help me as soon as possible...
Note: Running test suite using command line. The batch file content is:
SET SAHI_HOME=..\..
SET SAHI_USERDATA_DIR=..
%SAHI_HOME%\tools\toggle_IE_proxy.exe enable
java -cp %SAHI_HOME%\lib\ant-sahi.jar net.sf.sahi.test.TestRunner scripts/Test.suite "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http: //localhost/test/index.htm default localhost 9999 1 iexplore.exe -nomerge
%SAHI_HOME%\tools\toggle_IE_proxy.exe disable
Regards,
Pooja
When I try to execute a test suite, it opens the browser and loads base url (whatever url specified in test suite) and stops there itself. It doesn't execute the test case steps. After some time it load page for second test case and stops without executing those steps.
The final report says that "JSERROR Script did not start within 130 seconds." Please help me as soon as possible...
Note: Running test suite using command line. The batch file content is:
SET SAHI_HOME=..\..
SET SAHI_USERDATA_DIR=..
%SAHI_HOME%\tools\toggle_IE_proxy.exe enable
java -cp %SAHI_HOME%\lib\ant-sahi.jar net.sf.sahi.test.TestRunner scripts/Test.suite "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http: //localhost/test/index.htm default localhost 9999 1 iexplore.exe -nomerge
%SAHI_HOME%\tools\toggle_IE_proxy.exe disable
Regards,
Pooja
This discussion has been closed.
Comments
Sahi only toggles the proxy settings on the browser to "Use proxy" and "Don't use proxy".
The browser has to first be configured once to use localhost 9999.
Could you set the proxy settings on the browser and try again?
Regards,
narayan
Thanks for the reply. I checked the proxy settings, it is localhost 9999. I also checked the source code to see the required js scripts appended and it is. It opens the browser load the page and after some time it kills and moves to next script. But never executes.
Regards,
Pooja
On IE use your machine name instead of localhost
So instead of
http://localhost/test/index.htm
use
http://machine_name/test/index.htm
Regards,
Narayan
I tried with machine name still same thing is happening, I even tried with simple test using google.com for that also same behavior.
I going to try using firefox.
Regards,
Pooja
Is there any output on the console where you did start_sahi?
Could you please post it here?
Regards,
Narayan
Here is the output from the sahi console..
>>>>>> Tests size = 3
#### Running Script: C:\sahi\userdata\scripts\Search_Registration.sah
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -nomerge "http://sahi.example.
com/_s_/dyn/Player_auto?file=C%3A%5Csahi%5Cuserdata%5Cscripts%5CSearch.sah__SahiAmpersandSahi__startUrl=http%3A%2F%2FmachineName%3A8090%2Fappgui%2Ftest.htm__SahiAmpersandS
ahi__sahisid=sahi_2ca1aee309bc10499b092fb0ea65bc677734sahixccbea2ac03a69048cf0b7
b305ad7303919aex"
PIDs: [4280]; 33203 ms
Killing C:\sahi\userdata\scripts\Search.sah
Kill: [4280]
#### Running Script: C:\sahi\userdata\scripts\Manage.sah
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -nomerge "http://sahi.example.
com/_s_/dyn/Player_auto?file=C%3A%5Csahi%5Cuserdata%5Cscripts%5CManage.sah__SahiAmpersandSahi__startUrl=http%3A%2F%2FmachineName%3A8090%2Fappgui%2Ftest.htm__SahiAmpersandS
ahi__sahisid=sahi_2ca1aee309bc10499b092fb0ea65bc677734sahix3d6ba2fd0054f0470b087
d100b1ff0021bd6x"
PIDs: [5772]; 2078 ms
Killing C:\sahi\userdata\scripts\Manage.sah
Kill: [5772]
#### Running Script: C:\sahi\userdata\scripts\Manage_User.sah
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -nomerge "http://sahi.example.
com/_s_/dyn/Player_auto?file=C%3A%5Csahi%5Cuserdata%5Cscripts%5CManage_User.sah_
_SahiAmpersandSahi__startUrl=http%3A%2F%2FmachineName%3A8090%2Fappgui%2Ftest.h
tm__SahiAmpersandSahi__sah
isid=sahi_2ca1aee309bc10499b092fb0ea65bc677734sahixa3cee74d06e3204dfd0b49101b1f0
03fe386x"
PIDs: [5948]; 2234 ms
Killing C:\sahi\userdata\scripts\Manage_User.sah
Kill: [5948]
Shutting down ...
Regards,
Pooja
Just now I tried in firefox, it is working fine. I dont know what wrong with IE. I am using IE 6.
Regards,
Pooja
I found the issue browserOption = -nomerge was the problem. When I removed that it worked fine. Thanks for the support.
SET SAHI_HOME=..\..
SET SAHI_USERDATA_DIR=..
%SAHI_HOME%\tools\toggle_IE_proxy.exe enable
java -cp %SAHI_HOME%\lib\ant-sahi.jar net.sf.sahi.test.TestRunner scripts/Test.suite "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http: //localhost/test/index.htm default localhost 9999 1 iexplore.exe -nomerge
%SAHI_HOME%\tools\toggle_IE_proxy.exe disable
Regards,
Pooja
Did the same... Thank you so much..
Regards,
Pooja
Thanks,
Pooja