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

Explain about business process component? types and usage?

1564


When and why to use descriptive programming?

607


How do we handle run-time errors?

581


What are the benefits of qtp?

556


How many add-ins comes by default with quicktest professional?

554






What is qtpro? What is quick test pro?

562


how to test Web application using QTP software

1567


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

698


Suppose I want fail that check point? How can you do that?

598


explain keyword driven framework with banking domain?

1565


How can i initiate the objects to find uniquely in OR

1470


what is clean sweep?

1881


How to get Traceability matrix from TD?

676


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4143


Can any body please tell me the steps of keyword driven framework of QTP.

1567