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.
Error in data driven testing
Hi
i am trying to do data driven testing where to create a case it need differant data each time
But while playing an error is coming like
"missing ) after argument list at Nov 17, 2010 10:37:00 AM"
The line of code it is focussing is below
var $data = _readCSVFile(C:\\Documents and Settings\\apuvvada\\Desktop\\sahi_20101103\\sahi\\userdata\\scripts\\data.csv"); // the file is kept in the scripts/td folder
for (var $i=0; $i<$data.length; $i++){
var $row = $data[$i];
Can some one suggest me where i am doing wrong
Thanks
Aparanji
i am trying to do data driven testing where to create a case it need differant data each time
But while playing an error is coming like
"missing ) after argument list at Nov 17, 2010 10:37:00 AM"
The line of code it is focussing is below
var $data = _readCSVFile(C:\\Documents and Settings\\apuvvada\\Desktop\\sahi_20101103\\sahi\\userdata\\scripts\\data.csv"); // the file is kept in the scripts/td folder
for (var $i=0; $i<$data.length; $i++){
var $row = $data[$i];
Can some one suggest me where i am doing wrong
Thanks
Aparanji
This discussion has been closed.
Comments
should be
_readCSVFile("C:\\ ...
Also, close the "for" loop with }.
I would suggest you use Eclipse or some other tool which provides syntax highlighting to catch these errors easily. Have a look at this video to configure eclipse for Sahi: http://www.youtube.com/watch?v=VO4dTyQ3-2U
Regards,
Narayan
It worked fine for me and i am able to play datadriven test
Regards
Aparanji