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
What is text/text area checkpoint?
Can we use index on view?
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
What is the Difference between copy to action and call to action?
How QA specialist can identify when programmatic descriptions are useful?
How do I get the QTP scripts result in xml format by using vb script function?
how to post xml data from QTP scripts to any application?
How to call a test from another test?
Differentiate the type of test cases which can be automated and which cannot be automated?
How many types of run modes are there in qtp?
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
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.
How will you compare keyword and expert view?
What is difference between run time object and test object?
How you debug your script?