OPening of notedpad in QTP to write and execute the coding?

Answer Posted / nanda

set fso = createobject("scripting.filesytemobject")

file_path = "c:\nanda.txt"
forwriting =2
forreading = 1
set notepad = fso.createtextfile(file_path,forwriting)
notepad.writeline "this is created by Nanda"
notepad.writeline "this is created on "& now
notepad.close

set notepad = fso.opentextfile(file_path,forreading)
for notepad.atendofstream
n = notepad.readline
msgbox n
Next

this script will create a notepad and write data and read
data in that file.

If any queries...
nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to carry out bit map check points in QTP

1958


What is the use of text output value in quicktest professional?

718


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1914


Explain process of smart Identification in QTP?

789


Where you are storing your script?

838


How to use the object spy in quicktest professional (qtp) 8.0 version?

728


What are the Application Functions available in QTP?

1722


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

1838


hou can we use vb script in qtp could u tell me breafly

1949


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1807


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

802


When Recovery scenario actually starts while testing the application?

1774


how to know no.of mails in our g mail by using vb-script

1987


How to remove the associated function library?

750


Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

1993