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

Can we use index on view?

1843


How many types of recording modes in qtp? Which will be used when?

751


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

1073


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

828


can any body give the banking domain concepts/links

3839


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1578


What will be happen if i load object repository at run time, but it has already associated.

1497


Can the user toggle between using Local OR and shared OR for the same action?

747


How to record a qtp script ?

755


what is output value in QTP and how it can be used in automation testing

1713


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

774


hou can we use vb script in qtp could u tell me breafly

1948


What are the advantages of Object Repository?

819


How do you test DLL files using automation Tool QTP?

2986


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

6715