ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How do you done Data-Driven Testing using MS-Word. What is 
the script for that
 Question Submitted By :: Nagireddy.sn
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you done Data-Driven Testing using MS-Word. What is the script for that
Answer
# 1
option explicit
dim fso,f,n
set fso=createobject("Scripting.filesystemobject")
set f=fso.opentextfile("path of the word document",1,false)

while(f.atendoflen<>true)'reading the word doc.
n=f.readline 'retrive the data from doc.line by line
wend.
 
Is This Answer Correct ?    2 Yes 1 No
Rajani
 
  Re: How do you done Data-Driven Testing using MS-Word. What is the script for that
Answer
# 2
Hai friends,
What is the script above is absolutly correct. in script, 
in 4th line 1--> Read mode of file
2--> Write mode of file
8--> Append mode of file
True--> New file creation when specified file doesnot exist
False--> QTP is not responsible when specified file doesnot 
exist
in 6th line
f.atendofline--> the end of file content

this script not only for MS.Word also for Notepad ie for 
Flat files.
 
Is This Answer Correct ?    1 Yes 1 No
Prashanth Chenna
 
 
 
  Re: How do you done Data-Driven Testing using MS-Word. What is the script for that
Answer
# 3
Hi,

I tried the steps given above, but it displays only in 
terms of ASCII. could you please give me the correction.
 
Is This Answer Correct ?    0 Yes 0 No
Sunitha
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?  1
if interviewer asked about the framework used for automation how we will handle the question..means what should be the answer..plz help..which framework u r used in our company? iGate1
There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ? Wipro4
Do we get any issues if we run the testscript on different browsers? what are the options we need to st in QTP? BirlaSoft1
I am struggling to understand QTP more from descriptive programming point of view. Is it easy to learn good QTP in South india by good faculty than north india? I found a great lack of institution in here. can you suggest me better instituion. I am holding two years of experience in same company, is there possibility in south india for me?  1
what is key word driven frame work how to use keyword driven frame in QTP in a project AppLabs1
How to convert non-reusable action into reusable action in QTP?(i know by default QTP will take it as a non-reuable action )(Chandana) plz urgent? Wipro3
list me out the shortcutkeys for some functionlities in the qtp for example to record ,to run ... etc CTS2
If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing. iGate2
can u store QTp frame work folders in VSS? If Not where u store those?  1
How do you change Logical Name of the object in test script? TCS1
What are the recording modes and executing modes avialble in QTP? Polaris3
where exactly we can't do the automation testing. give some examples Wipro2
Where the text version of script file located in file system?  1
Which function is used to accesses the Properties from Repository Pls anybody can give the answer.. Thanks in advance... Navis2
where is the bitmap checkpoint be saved  1
How to call script1 into script2?  3
What is creation time property and how does it work?  1
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.  2
How you automate testscripts one by one or modukewise or all at once Diebold1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com