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

Where can i get professional course on web services testing in hyderabad or bangalore

11 Answers  


Tell me what is tsl? What 4gl is it similar too?

0 Answers  


Is software requirement specification for developer and tester is same?

1 Answers  


hi i m runing a login script using multiple data by importing from excel sheet, now i want to get a status pass or fail each time the script run for multiple data?? so anyone can help me out?

3 Answers  


Could any one share scripts... where we can Parameterize radio buttons and Check boxes in Rational Robot.

0 Answers  






What testing activities you may want to automate?

0 Answers  


What are the main differences between Loadrunner and QTP tools? Describe briefly a "real world" scenario that would make you use the first one versus the other? Thank you for your answers....

0 Answers  


Simplify the term defect severity.

0 Answers  


what are categories in step generator?

1 Answers  


Explain me what kinds of annotations are used in testng?

0 Answers  


Does automation replace manual testing?

2 Answers  


I heard that there is a test management system that makes tracking metrics an easy task. I would like to know more about it. Please guide me.

1 Answers  


Categories