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.

Parametrization is not working on the Build No : 2009-02-10

1701198117011981 Members
edited November -1 in Sahi - Open Source
On the build no : 2008-06-27 parametrization is working fine
But
on the build no : 2009-02-10 parametrization is not working fine

please provide the solution for this.....

Comments

  • narayannarayan Administrators
    Please elaborate with examples.
  • 1701198117011981 Members
    edited February 2009
    My code is as (for the build 11 Feb 2009):

    _click(_link("View Base Reports"));

    _click(_link("\u00bbClaim Details Summary"));

    var $fileContents = _readFile("D:\\InputData\\TSN019.txt");
    var $SEPARATOR = ","; // or "\t" for tab
    var $data = new Array();
    var $lines = $fileContents.replace(/\r/g, '').split("\n");
    for (var $i=0; $i<$lines.length; $i++)
    {
    $data[$i] = $lines[$i].split($SEPARATOR);
    $row = $data[$i];
    _setSelected(_select("winClientIds"), $row[0]);
    }
    Sahi executes the first two lines of code correctly...but stops at step 3 and indicate as failure...pls suggest the solution asap...
  • narayannarayan Administrators
    Any errors on the console or in the logs?
  • narayannarayan Administrators
    Use
    var $fileContents = "" + _readFile("D:\\InputData\\TSN019.txt");
    
    It will be fixed in the next build.

    Consider taking a paid support contract if your queries are very critical.

    Regards,
    Narayan
Sign In or Register to comment.