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.

Sahi not responding!

hishamnhishamn Members
edited November -1 in Sahi - Open Source
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.

Comments

  • Hi hishamn

    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
  • I am using the controller. When i click play sahi does absolutely nothing. The controller gets stuck and i am unable to click any buttons on it. I then have no option but to exit the controller. the controller does not even shut down easily, i have to try and close it several times. This issue does not occur with other scripts, just this particular one. all other scripts run smoothly.
  • Hi hishamn,

    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
Sign In or Register to comment.