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 do you to script when objects are removed from application?
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
What is difference between shared and local object repository?
Explain different recording modes?
In qtp is it possible to check broken links of a page?
hi nani my doubt is how does qtp process metrix related to software process.
How to get the particular property value?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
What is the XML file architecture ?
Do you know how to connect database? Can you tell me the procedures?
Hybrid framework supports Descriptive programming. Is it true?
Explain the difference between data driven testing and parameterization ?
How you can decide which type of object repository you have to use?
1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins