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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 ?    0 Yes 0 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 ?    0 Yes 0 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
 
what is L-trim function will do?  1
How can you delete the results file (XML)  2
what is compiled module?  1
WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP? CTS7
Hello Everybody, Please tell me the concept of recovery management in QTP by giving any practical example of it. Thanks, Gaytri  6
what is exact difference between smoke and sanity testing? Satyam6
What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project Yahoo2
I have two actions in my QTP test and two iterations in my DataSheet. I want to execute the Action 1 for the two iterations only after which i want to exceute the next Action2. How is this possible?  1
What is the scripting language used in QTP?  5
can we take 'dim my pen is good' as a paramerter  2
Can any body tell me how can I choose the share object repository and per action object repository mode. Please give me with steps.  2
How to make Non reusable actions into reusable action? is that feature available in QTP Ordain-Solutions2
What is the Difference Between Quick Test Pro and Quick test professional? Infotech4
While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.  1
hello...any one tell me , where can i get company email id.. actually i am searching on testing... in my CV i put 3+ exp.. but all companies are asked company email id.. please provide solution for that... thanx in advance...  5
What is the difference between Normal mode and Fast mode ? AZTEC1
how to write regular expression for Date field? Google5
what is object? iFlex4
how to do spell check in QTP? reply please  3
How do you change Logical Name of the object in test script? TCS1
 
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