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
Describe function procedure in vbscript.
what is the hierarchy to use properties in descriptive programming
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
How to record a qtp script ?
Hoe can we do retesting using functions please give the code for it using login page
What are the advantages of Object Repository?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
What is the difference in the global and action sheet in qtp?
What is Test Fusion Report in QTP?
QTP script is not working on other's machine..
For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?
What is the syntax for how to call one script from another?
I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?