Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 are the application does winrunner support? What are the applicaiotn does QTP support? Does winrunner, QTP can be used in Linux OS?

2 Answers  


Tell us what is the difference between getwindowhandles() and getwindowhandle()?

0 Answers  


How you will evaluate the tool for test automation?

1 Answers  


List of Test Management Tools??Is Quality Center Test Management tools

0 Answers  


Tell me how would you test your own element locator?

0 Answers  


List some advantages and disadvantages of manual testing.

0 Answers  


What is tree view in automation testing?

0 Answers  


What kinds of annotations are used in testng?

0 Answers  


in keyword driven frame work..where Driver Script is locate? is there any inbuilt script for driver script?who writes the driver script?how to call it any body can tell me with an example...like(yahoo login,inbox, logout).

0 Answers   Yahoo,


has anyone attended mr. g c reddy sir classes? whom you guys want me to choose Mr. G C Reddy or Mr. Suresh Reddy ? Please help!!!!!!!!!!!

0 Answers  


what is meant by framework? and when we use framework in our project ?

11 Answers  


What are the main attributes of test automation?

0 Answers  


Categories