18 January 2026:


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.

Script works fine from console, but not in batch mode

maarten_huijsmaarten_huijs Members
edited June 2013 in Sahi Pro
Hi All,

Hope you can help me with my problem. A few days ago, I switch to Sahi in order to perform a load test. I use Sahi Pro 5.0.5. (Windows XP, IE 8 ). The error message in log file is: "Script did not start within 150 seconds."

I created a script for testing an intranet agenda tool. It's only accessible from local computers by navigating to the first link. This will open a new browser window with the actual app. In order to perform the actions in the popup, and not base screen (which have exactly the same names), I navigate base screen back to another page.
Script finalscript.sah is as follows:

_navigateTo("http://ultragenda-acceptatie/UltraGendaPro/";);
_navigateTo("http://intranet/";);
_popup("UltraGenda")._setValue(_textbox("txtLogin"), "*******");
_popup("UltraGenda")._setValue(_password("txtPassword"), "*******");
_popup("UltraGenda")._click(_button("Login"));
_popup("UltraGenda")._click(_button("Vrij"));
_popup("UltraGenda")._setSelected(_select("sgrpSelect"), "controle");
_popup("UltraGenda")._setSelected(_select("apptypeSelect"), "controle hoortoestel BAHA");
_popup("UltraGenda")._click(_checkbox("d3"));
_popup("UltraGenda")._click(_button("butSearch1"));
_popup("UltraGenda")._click(_cell("10:30"));
_setValue(_textbox("sFamilyname"), "ge");
_click(_button("Zoek"));
_click(_span("*******"));
_click(_button("Kies"));
_popup("UltraGenda")._setSelected(_select("selRefsourceId"), "Huisartsen");
_popup("UltraGenda")._click(_button("Bewaar"));
_popup("UltraGenda")._click(_image("b_del_white.gif"));
_setSelected(_select("cntTypeSelect"), "Verkeerde boeking");
_click(_button("Bevestig"));
_popup("UltraGenda")._click(_image("b_logout.gif[1]"));

Script itself works great from console, but now i want to run this in batch mode (necessary for load test, right?!) by command:

testrunner.bat finalscript.sah http://ultragenda-acceptatie ie

I tried it both via Dashboard > bin and via Dashboard > (Web) by opening a suite with this script and the particular starting page in it.
It actually opens start screen, but then gets stuck. It seems that the script does not run at all!

Can anybody provide a solution please?

Thanks a lot.
Maarten

Answers

Sign In or Register to comment.