How do you done Data-Driven Testing using MS-Word. What is
the script for that

Answer Posted / rajani

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 ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of functions available in qtp and explain ?

805


Which environments does qtp support?

878


What is debugging? How you debug your script?

840


how to find that tools work well with ur existing system?

1670


Explain how you can find the absolute value of the number in qtp?

869


what is the difference between development and testing

3012


Explain different recording modes?

805


What are the different attributes used with regular expression?

788


How to integrate the qualitycenter with qtp

2006


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1575


what is run action?

1685


What is keyword view in qtp?

741


What ate the Technologies supported by QTP?

924


Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

1679


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1745