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.
Sahi not responding!
I tried running s script but for some reason sahi gets stuck and does not respond.
/Getting commands for the test case.
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\Users\\hishamn\\sahi\\userdata\\scripts\\Driver.xlsx;readOnly=false", "","");
var $command = db.select("select * from [Sheet1$]");
var $action = new Array();
var $value = new Array();
var $step = $command[0]["Number of steps"];
var $count = 0;
var $Path;
//_include("C:\Users\hishamn\sahi\userdata\scripts\Navigate_to_online.sah");
for ( var $i = 0; $i<$step ; i++ )
{
$action[$i] = $command[$i]["Command"];
$value[$i] = $command[$i]["Comment"];
$Path = "C:\Users\hishamn\sahi\userdata\scripts"+"\"+$action+".sah";
_include($Path);
}
This is the first time i am observing this issue.
/Getting commands for the test case.
var db = _getDB("sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};DBQ=C:\\Users\\hishamn\\sahi\\userdata\\scripts\\Driver.xlsx;readOnly=false", "","");
var $command = db.select("select * from [Sheet1$]");
var $action = new Array();
var $value = new Array();
var $step = $command[0]["Number of steps"];
var $count = 0;
var $Path;
//_include("C:\Users\hishamn\sahi\userdata\scripts\Navigate_to_online.sah");
for ( var $i = 0; $i<$step ; i++ )
{
$action[$i] = $command[$i]["Command"];
$value[$i] = $command[$i]["Comment"];
$Path = "C:\Users\hishamn\sahi\userdata\scripts"+"\"+$action+".sah";
_include($Path);
}
This is the first time i am observing this issue.
Comments
could you be more specific about what is stucking? Do you run this code via controller or suite? Does sahi really get stuck or are you receiving a "did not execute step". Do you get any error messag? Did the code run successfully before?
Regards
Wormi
If you are using 64 bit windows then you will have to install AccessDatabaseEngine_x64.exe.
You can download it from here:
http://sahi.co.in/w/working-with-excel-sheets
Let me know if this solves your issue.
Regards
Sumitra