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.

Question about _readCSVFile

gligogligo Members
edited November -1 in Sahi - Open Source
Hi Guys,

I need some help.

Is it possible to use parameter as a path by this function: _readCSVFile("path/to/data_file.csv"); ?

For example, I need the path to be saved in config file, because it will be different for each machine ...
Can someone give me a hint, how could this be made?

Also, it will be intersting for me if it is possible the logs to be saved localy, no matter that the tests, that are executed, are on a remote machine.......

Thank you!

Comments

  • Hi gligo,

    You can save the file in config and use _readFile() API.

    Details about _readFile();

    http://sahi.co.in/w/_readFile

    For the second issue:

    Do you want to save the logs which are on the remote machine or is that you want to save the logs of remote machine into your machine?

    If you want the logs of the remote machine to be on your machine then its possible using drun that is available in Sahi Pro.

    Regards
    Sumitra
Sign In or Register to comment.