How do you done Data-Driven Testing using MS-Word. What is
the script for that
Answers were Sorted based on User's Feedback
Answer / rajani
option explicit
dim fso,f,n
set fso=createobject("Scripting.filesystemobject")
set f=fso.opentextfile("path of the word document",1,false)
while(f.atendoflen<>true)'reading the word doc.
n=f.readline 'retrive the data from doc.line by line
wend.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / prashanth chenna
Hai friends,
What is the script above is absolutly correct. in script,
in 4th line 1--> Read mode of file
2--> Write mode of file
8--> Append mode of file
True--> New file creation when specified file doesnot exist
False--> QTP is not responsible when specified file doesnot
exist
in 6th line
f.atendofline--> the end of file content
this script not only for MS.Word also for Notepad ie for
Flat files.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sunitha
Hi,
I tried the steps given above, but it displays only in
terms of ASCII. could you please give me the correction.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can u explain about QTP framework
How to handle dynamic objects in quicktest professional (qtp)?
hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt
how to test background color and dynamic images during runtime
Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan
explain virtual object? in detailed? pls any one explain me?
How we can we create a Text checkpoint in QTP 9.1,Actually what i did is first i put in recording mode and gofor Inser menu>Checkpoint>Textcheckpoint>click,Now an hand symbol came and i showed it to some textbox and cliked but the QTP9.1 is giving an error message like "The Obkect you are selecting doesn't support this operation" If i go for Help of QTP 9.1 information I didn't get any solution,pls help me in this issue.
hi all, I have installed QTP successfully on windows vista. I am able to record and run on windows applications, but facing problem with web applications. While recording, I am able to open the web application, but when I click on any object or give login name and password, the events are not getting recorded in QTP. Could anyone solve the problem. Any settings to be done for web applications other than selecting web-addin? Waiting for replies. Thanks in advance.
How Can I automate PDF forms using QTP9.2 ?
How do u insert an object during runtime in qtp?
How does QTP identifies the object in the application?
In qtp, explain what is crypt object