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
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 |
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 |
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 |
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 |
What is the Differnce between Client/Server Testing and Web Based Testing?
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?
How did you use automating testing tools in your job?
how can i count the no of edit field in a page and fill the multiple edit field
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??
Can Any one tell me the difference between winrunner and test partner or qtp and test partner?
Tell me what criteria do you consider for automating a test?
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
What is junit? And what is junit annotation?
What are the main attributes of test automation?
Plz suggest me a tool which supports ActiveX controls
How you will describe testing activities?