how to read data from a csv file using Test complete
functional tool..please can anyone post the code

Answers were Sorted based on User's Feedback



how to read data from a csv file using Test complete functional tool..please can anyone post the c..

Answer / prasad gali

HI Aparna,

Testcomplete is having Drivers to work with any database
such as CSV files,EXCEL files..

This is done in TestComplete using DDT project item.

DDT.CSVDriver("Application Path");
//then wotk with ur CSV file..

Regards

Prasad Gali

Is This Answer Correct ?    7 Yes 1 No

how to read data from a csv file using Test complete functional tool..please can anyone post the c..

Answer / sheeja paul

var RecNo;
// Creates the driver (main routine)
function TestCSVDriver()
{
var Driver;

Driver = DDT["CSVDriver"]("C:\\MyCSVFile.csv");

// Iterates through records
RecNo = 0;
Driver["DriveMethod"]("csvread.ProcessCSVData");

// Closing the driver
DDT["CloseDriver"](Driver["Name"]);

}

function ProcessCSVData()
{
var i;
for(i = 0; i < DDT["CurrentDriver"]["ColumnCount"]; i++)
{
Log.Message(DDT["CurrentDriver"]["ColumnName"](i));
Log.Message(DDT["CurrentDriver"]["Value"](i));
}
RecNo = RecNo + 1;
}

// Content of MyCSVFile.csv is
//Head 1,Head 2,Head 3,Head 4,Head 5
//Z1,Z2,Z3,Z4,Z5
//Y1,Y2,Y3,Y4,Y5

Is This Answer Correct ?    4 Yes 0 No

how to read data from a csv file using Test complete functional tool..please can anyone post the c..

Answer / rajkiran

Can we Pass Blank values through CSV file or Excel file to test complete? i tried but it shows "Type Mismatch" Error.

Please help.

Is This Answer Correct ?    0 Yes 0 No

how to read data from a csv file using Test complete functional tool..please can anyone post the c..

Answer / nivedita

Can u please pass some piece of code for writing data or
inserting the values in the excel sheet using ddt driver

Is This Answer Correct ?    0 Yes 0 No

how to read data from a csv file using Test complete functional tool..please can anyone post the c..

Answer / pm

Use CSV driver. Refer TestComplete help.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Automation Testing AllOther Interview Questions

What is the Differnce between Client/Server Testing and Web Based Testing?

3 Answers   BirlaSoft,


What are the scripting languages used in WinRunner, LoadRunner, QTP, Test director, ClearQuest, Rational Robot? How do you decide which tool will be a best fit for your test enviorment?

3 Answers  


How did you use automating testing tools in your job?

0 Answers  


how can i count the no of edit field in a page and fill the multiple edit field

0 Answers   Toshiba,


Can anyone tell me the correct answer of below question....it is about Bugzilla tool. When bug will find out at the time of executio where it will save or what is the location of bug??

0 Answers   Diya,


Can Any one tell me the difference between winrunner and test partner or qtp and test partner?

1 Answers   Satyam,


Tell me what criteria do you consider for automating a test?

0 Answers  


i am living in pune.from 2 months i am searching s/w testing class.but i am confuse which is the good.please send me reply who complete their testing course..i want where teaching is very good & give real project.because many insti.assured placement & real time project,but after addmission it will not be true.so send me reply.i also confuse where i put my query.i hope so,will get reply soon

5 Answers  


What is junit? And what is junit annotation?

0 Answers  


What are the main attributes of test automation?

2 Answers  


Plz suggest me a tool which supports ActiveX controls

3 Answers  


How you will describe testing activities?

1 Answers  


Categories