Quality Testing

Quality is delighting customers

How to read data from a CSV file using Test Complete functional tool?

Hi,

Any body using Test Complete Tool? If yes, Please answer my question, How to read data from a CSV file using Test Complete functional tool?

Views: 985

Reply to This

Replies to This Discussion

You can read data from CSV or XLS, databases etc. There is thing called CSV Driver. Only thing you should to is to call that method and type path to the csv file inside. Thats all you should do.
We are reading data from XLS files like databases using connection strings and SQL. Don't know if that works with csv files.
if we talk about TC yes it works the same way for a csv files
Hello,

Please read the topic - Data Driven Testing in Test complete Help. You should be able to do basic things after reading the topic. We use excel file instead of CSV file.

Thanks.
Regards,

Vallabh Chitnis
Hi Friend, did u get the solution for the question?

Lakshmi
Hi Aarya,
please see the code this will help you !!

HostName = Project.Variables.Hostname;
VDir = Project.Variables.VDir;
path = Project.Variables.path;


p1 = Sys["Process"]("iexplore", 1);
w=Sys["Process"]("NOTEPAD");

FS1 = Sys["OleObject"]("Scripting.FileSystemObject");

F1 = FS1["OpenTextFile"](path+"\ProgramDoc.txt", ForReading);
while(! F1["AtEndOfStream"])
{
str = F1["ReadLine"]();
intRecordCount++;
}
F1["Close"]();

Thanks,
Deepak

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service