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.
Data driven testing
hi sahi users.
i am using sahi tool for testing my application.
Below function is used to test login page from Excell sheet.
i download the excell drivers and kept in Bin folder,excel sheet in Data folder. and also executed the path java -cp ../extlib/your_driver.jar:../lib/sahi.jar net.sf.sahi.Proxy
My excell sheet contains the userName and Password
when i executed below script i am getting Stopped Playback: SUCCESS--
_setSelected(_select("userGroupId"), "Vendor");
function login($userName,$Password){
var $driver="com.hxtt.sql.excel.ExcelDriver";
var datafile="jdbc:excel:c:/sahi/data/Testone.xls";
var $db= _getdb($driver,$datafile);
$db.select(selecy *from sheet1);
_setvalue(_textbox("user Name"),$userName);
_setValue(_textbox("Password"),$Password);
}
login($userName,$Password);
_click(_image(12));
Please let me know where i went wrong.
Thanks
Sekhar reddy.
i am using sahi tool for testing my application.
Below function is used to test login page from Excell sheet.
i download the excell drivers and kept in Bin folder,excel sheet in Data folder. and also executed the path java -cp ../extlib/your_driver.jar:../lib/sahi.jar net.sf.sahi.Proxy
My excell sheet contains the userName and Password
when i executed below script i am getting Stopped Playback: SUCCESS--
_setSelected(_select("userGroupId"), "Vendor");
function login($userName,$Password){
var $driver="com.hxtt.sql.excel.ExcelDriver";
var datafile="jdbc:excel:c:/sahi/data/Testone.xls";
var $db= _getdb($driver,$datafile);
$db.select(selecy *from sheet1);
_setvalue(_textbox("user Name"),$userName);
_setValue(_textbox("Password"),$Password);
}
login($userName,$Password);
_click(_image(12));
Please let me know where i went wrong.
Thanks
Sekhar reddy.
Comments