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.
Facing problem in Data Driven Testing
Hi Narayan,
I have gone through the Testersdesk and made a simple data driven testing for login function.
While running my script I got the error message as
JSERROR
Wrapped net.sf.sahi.util.FileNotFoundRuntimeException: java.io.FileNotFoundException: C:sahiuserdatascriptslogin.csv (The system cannot find the file specified)
My Scripts is:
function login($usr, $pwd) {
_setValue(_textbox("username"), $usr);
_setValue(_password("password"), $pwd);
_click(_imageSubmitButton("Sign In"));
}
var $data = _readCSVFile("C:\sahi\userdata\scripts\login.csv");
for (var $i=0; $i<$data.length; $i++)
{
var $row = $data[$i];
login($row[0], $row[1]);
}
Pls help me in this.
Thanks in advance
-Babsun
I have gone through the Testersdesk and made a simple data driven testing for login function.
While running my script I got the error message as
JSERROR
Wrapped net.sf.sahi.util.FileNotFoundRuntimeException: java.io.FileNotFoundException: C:sahiuserdatascriptslogin.csv (The system cannot find the file specified)
My Scripts is:
function login($usr, $pwd) {
_setValue(_textbox("username"), $usr);
_setValue(_password("password"), $pwd);
_click(_imageSubmitButton("Sign In"));
}
var $data = _readCSVFile("C:\sahi\userdata\scripts\login.csv");
for (var $i=0; $i<$data.length; $i++)
{
var $row = $data[$i];
login($row[0], $row[1]);
}
Pls help me in this.
Thanks in advance
-Babsun
This discussion has been closed.
Comments
I solved the problem.
Now its working fine.
-Babsun