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 is text/text area checkpoint?

823


Can we use index on view?

1848


HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com

1767


What is the Difference between copy to action and call to action?

833


How QA specialist can identify when programmatic descriptions are useful?

2205


How do I get the QTP scripts result in xml format by using vb script function?

2026


how to post xml data from QTP scripts to any application?

1755


How to call a test from another test?

995


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

792


How many types of run modes are there in qtp?

809


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1901


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1545


How will you compare keyword and expert view?

740


What is difference between run time object and test object?

785


How you debug your script?

782