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 object spy in quicktest professional (qtp)?
What is the syntax to call one action in another?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
How to find a window is minimized or not
What is keyword view in qtp?
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
What is the meaning Work bench?
How does qtp identify the object in the application?
what are the limitations of smart identification in qtp 9.0
Explain how Selenium is different from UFT?
Plz Explain AUTOMATION REFERENCE MODEL?
What are the challenges you faced during you entire life automation ?
Explain how qtp identifies objects?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this