How can you Open a Notepad and How can you write the test
Resuts in Notepad by Using QTP?

Answer Posted / kavitha

dim fso,f,x,y

Set fso=createobject("Scripting.filesystemobject")
Set f=fso.opentextfile("path of the file",1/2/8) {1-reading
mode, 2-writing mode, 8- read and write mode }
While f.atendofline<>true
x=f.readline 'it reads the value

In notepad file u have to put the data and attached to this
program to run the file morethan one time.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1515


How can you identify the browser and its information using the qtp script?

575


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1710


What is text/text area checkpoint?

560


How software automation specialist enter steps in the Expert View?

1670






How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

1662


explain how to write vb script in qtp?when will you write own script?

1851


how to find that tools work well with ur existing system?

1350


What is object spy in quicktest professional (qtp)?

533


Explain the difference between call to action and copy action?

512


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

1541


What do you mean by checkpoints in qtp?

554


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1397


Is it possible to call win runner script in qtp?

621


Analyzing the checpoint results?

595