how do you done Data-driven test using MS-Word Instead of
DataTable

Answers were Sorted based on User's Feedback



how do you done Data-driven test using MS-Word Instead of DataTable..

Answer / saravana.s

In Case, if my word or text file is having millions of
lines then how can i calculate efficiently the total number
of lines?

Is This Answer Correct ?    1 Yes 0 No

how do you done Data-driven test using MS-Word Instead of DataTable..

Answer / nagi reddy

Could u please give Idea and code for this Question

Is This Answer Correct ?    0 Yes 1 No

how do you done Data-driven test using MS-Word Instead of DataTable..

Answer / rajani

using the following script we do the data driven test, data
from flat file i.e., from notepad, Ms-Word etc.,
option explicit
dim fso,f,n
set fso=createobject("Scripting.filesystemobject")
set f=fso.opentextfile("path of word doc.",1,false)
while(f.atendofline<>true)'read the file to the end of file
n=f.readline()'line by line reading

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

If enter into interviewer room? how u introduce with him. with shakehand or waht?

2 Answers  


How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.

2 Answers  


Can anyone explain me about child objects in detail;when they are used and why do we need them ? please give me sample code for this if possible.

1 Answers   Virtusa,


What is User defined function in QTP

6 Answers   Bank Of America,


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

0 Answers   CTS,


which checkpoint we use to validate yahoo login screen window after login with ur id and password in qtp

8 Answers   Covansys,


i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)

0 Answers  


interviwer asks what is data table? my ans is Data table is an internal Excel file of QTP...intervier not happy with this also? can u post any other answer?

3 Answers   Accenture,


Where we use data driver in qtp?

0 Answers  


Object recognition in QTP is based on which model ? a) COM b) DCOM c) DOM d) None of the above

2 Answers   Ordain Solutions,


Can anybody help me by sharing the code for checkbox in qtp using vbscript.

2 Answers  


How to catch the TOol Tip Dyanamically changing values using the qtp script by Descriptive Programming Scenario: ======== 1. when i press the submit button 2. The Tool tip first shows the value "Validating...." 3. Next the value is changed in tooltip "Logging....." ------ And the class is webElement SO , how can i catch both values During Run time using Dp

1 Answers  


Categories