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 the parameterization? Give one example?
how to download mercury qtp9.2 ny internet ?
What does it mean when a check point is in red color? What do you do?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
In qtp, how you can remove the spaces from string?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
Explain in brief about the quicktest professional automation object model?
How to run a test using quicktest professional?
How many types of recording facility are available in quicktest professional (qtp)?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
Explain the Different types of QTP test assets and their extensions?
What is active screen?
What is synchronization point in QTP?
How to use output values in qtp ?