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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two types of repositories available, explain them?

591


can anyone tell me from where i can download qtp demo or crack version

1621


We stored into the objects OR and then write the scripting

1539


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1601


What do you to script when objects are removed from application?

610






How to use reporter.report event in qtp ?

552


What is action split and the purpose of using this in qtp?

533


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

1734


Differentiate the type of test cases which can be automated and which cannot be automated?

565


hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.

1424


How to get Traceability matrix from TD?

667


How software tester can use constants and variables in scripts?

1684


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1323


How do you create new test sets in td?

529


Explain how to use QTP to check broken links on a page?

581