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.
Problem in data driven testing
Hi Narayan,
I have gone through testersdesk and have done one simple data driven test for username and password.
its not working.
When i tried to play the script through sahi controller
I got the message like:
Please open the Controller again.
(Press CTRL ALT-DblClick on the main window.)
So, i have closed the Sahi controller & IE window and re-opened. No use.
but when i tried with other scripts its running smoothly..
Please review my below code.
function login($usr, $pwd){
_setValue(_textbox("txtUser"), $usr);
_setValue(_password("txtPassword"), $pwd);
_click(_submit("Sign In"));
_click(_link("Logout"));
}
var $data = _readCSVFile("../scripts/Book1.csv");
for (var $i=0; $i<$data.length; $i++)
{
var $row = $data[$i];
login($row[0], $row[1]);
}
Thanks and regards,
Rajasekhar
I have gone through testersdesk and have done one simple data driven test for username and password.
its not working.
When i tried to play the script through sahi controller
I got the message like:
Please open the Controller again.
(Press CTRL ALT-DblClick on the main window.)
So, i have closed the Sahi controller & IE window and re-opened. No use.
but when i tried with other scripts its running smoothly..
Please review my below code.
function login($usr, $pwd){
_setValue(_textbox("txtUser"), $usr);
_setValue(_password("txtPassword"), $pwd);
_click(_submit("Sign In"));
_click(_link("Logout"));
}
var $data = _readCSVFile("../scripts/Book1.csv");
for (var $i=0; $i<$data.length; $i++)
{
var $row = $data[$i];
login($row[0], $row[1]);
}
Thanks and regards,
Rajasekhar
Tagged:
Comments