Explain about opening notepad in QTP and writing of test
result in notepad?
Answer Posted / sailaja
Hi
The above ans will error message at for loop.
This will work fine.
Dim fso,notepad
set fso = createobject("scripting.filesystemobject")
file_path = "c:\nandu.txt"
'forwriting =2
'forreading = 1
set notepad = fso.createtextfile(file_path,1)
notepad.writeline "this is created by Nanda"
notepad.writeline"this is created on "
set notepad = fso.opentextfile(file_path,1)
Do
n = notepad.readline
msgbox n
Loop until ( notepad.atendofstream=true)
Thank you
Sailaja
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
How is UFT 11.5 version different from UFT 12.0?
Where can I find and view run-time data table?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
If I change the object name in one action will it be updated in all the actions? Or not?
How do you synchronization point through DP?
I want to test my vb.net solution file using qtp. Does Qtp test only .exe file?
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...
If I change the property value at runtime is it effect is object repository?
What are the different types of checkpoints?
what QTP Options do you know?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
How do I get the QTP scripts result in xml format by using vb script function?
What is action? How many types of actions are there in qtp?
is it possible to add sheets to excel at runtime
What are the different ways to invoke an application using QTP?