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.

Sahi PRO not reading all characters.

SreekanthSreekanth Members
edited July 2014 in Sahi Pro
Hello All,

I have a txt file in which there are four columns and 1000+ rows. Columns are separated via tab. It looks like a .tsv but file is saved as .txt. In few rows, there are data which has got double quotes within them.

For example.

Italien - IT (005) Rimini Miramare (RN) Sezione Operativa Territoriale AEROPORTO MIRAMARE "F. FELLINI" IT026101



I am reading file content to a variable and then using for loop taking each value from each column. The problem is, when it reaches a row where there are double quotes. Sahi fails to read full content, it only reads the data in double quotes. If it was reading above example, only "F. FELLINI" will be read. Following text will be ignored “Sezione Operativa Territoriale AEROPORTO MIRAMARE”.


This is how I am reading values.
var $dataLines = _readCSVFile($sahiPath + "/Inputs/DataDrive/Codes/EXTCL.txt", " ");

Seems the problem is when reading with API _readCSVFile. when I read with _readFile, I can see full text coming. But, when reading contents with _readFile API and then looping them, I was not able to to take values of each cell separately. From there its coming by each alphabet at a time.


Reading with _readCSVFile was working perfectly with SAHI OS.



Will great help if someone could look into this and suggest a solution.

Version : 5.1.2
Build : 2014-04-21 13:53:25
Browser: Firefox 30.0
OS: Windows 8


Regards,
Sreekanth.
Sign In or Register to comment.