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
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
How do you convert manual test cases to automated test cases?
How to delete an object from the object repository?
How to release all resources file from the QTP?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
How to export quicktest professional (qtp) results to an .xls file?
Write a script to customize the test results in PDF and HTML format.
What is the syntax to call one action in another?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
how will you load the test cases in ddt?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
what are the utilities and drivers