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

hi........ i want kniow about automation testing.how to work as automation tester.If we have a software so how to test the software from automation tool like QTP please give me answer in detail or any link thanks

1 Answers  


How to open an application through scripting in QTP? Give me Syntax and example please

2 Answers  


I need some help with my interview answers for TeleTech. Here are the questions I have to answer and the answers I plan to give to the company. Please could you help I want to make sure I do the best possible. Thank you in advance, Jose 1.New processes and procedures can be disruptive. What actions have you taken when you’ve been asked to significantly change a work process or procedure? What were the results? The only thing I can think of is when the company changed the software they were using to interact with their customers the CRM. It was a little bit challenging. What I did was study the new software in detail to be ready to interact with customer quickly and efficiently using the company's new CRM software. 2.Tell me about a time when you have had to deal with a difficult customer. How did you handle the situation? One time a customer called in to the company and was upset because a technician did not arrive at their house to resolve the problem they were having with their internet not working. So after listening to the customer problem and making sure I understood the problem I showed empathy to the customer and assured the customer I understood the problem and took ownership of the problem making it my own. I reassured the customer I would find a solution to their problem and later found out that the customer was misinformed about the time the technician was suppose to arrive at the customers house, informed the customer of the correct time the technician was scheduled to arrive at her home and apologized for any inconvience that they may have experienced. 3.Sometimes if we’re lucky, we can identify a small error or problem and correct it before it becomes a headache. Has this ever happened to you? Yes, it has one time while I was talking with a customer about a problem they were having logging into the company website. I asked the customer to verify the email address they wanted to use on the company website. After verifying with the customer noticed the customer had the wrong email address on file and immediately changed the customer email address to the email address of the customer. 4. What general questions would you ask a customer prior to starting to troubleshoot their issue? I would first ask the customer what issue they are having? I would then let the customer explain in their own words what they have experienced and not interrupt the customer. After I begin understanding the customer issue I would start using closed ended questions that require more specific answers to narrow down the problem and possible resolution. Next I will verify my understanding of what the customer has told me and get the customer to agree that I understand the issue.(Eg. Okay so your having trouble try to logging into our website it tells you invalid password is that correct?) If the customer agrees then I will proceed to resolve the issue by asking more questions and proceed to the solution. I will not continue until the customer agrees that I understand the issue. 5. What steps should be taken to install software via a CD? First make sure there is no CD in the CD drive if there remove the CD from the computer and put in the CD of the software you are trying to install. Next Open My Computer Within the My Computer window, open the drive that contains the installation files. For example. If they're on a CD or DVD open the D: drive or the letter of the disc drive. Next Within the drive that contains your files, locate either a setup or install file. Double-clicking on this file should start the installation for the program. If you see multiple setup or install files, try to locate the Application file or double-click each of setup or install files until you find the file that starts the installation. Many times the icons associated with the installation files have the same name.

0 Answers   TeleTech,


wat would be the parameteries for ul testing for web applilcation

0 Answers  


Do you know what is a data-driven framework?

0 Answers  


Hi, here r some questions, which were asked in Ekaplus, plz process these questions. 1. How we connect with the version?

0 Answers   Eka Software,


how to test an webbased application?

0 Answers   TCS,


What is Test strategy documents.

2 Answers   Covansys,


What is Automation Testing Framework

5 Answers   Covansys,


How do select which automation testing tool is the best for you?

0 Answers  


What are the various kinds of frameworks that can be used in software automation testing?

0 Answers  


On what basis you can map the success of automation testing?

0 Answers  


Categories