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 could go wrong with test automation?
What are principles of good testing scripts for automation?
How to open an application through scripting in QTP? Give me Syntax and example please
1.what is senario?
How you report bug in to bugzilla
How will you choose a tool for test automation?
please guide me to get some automation tool for functional testing in freeware and how to work with it?Its emergency
I am new to jmeter and i am working on .net application.I am recording the requests and pop up images data are not recording.can some one suggest an idea regarding this
hi every one this is ashok pls any one give answer me pls question is while testing with selenium after giving id user name and password , the inbox will be open , how to handle this one
wat would be the parameteries for ul testing for web applilcation
What automated tools are you familiar with?
What is quality assurance?