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
if numbers are always changing write a script for that
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
Explain sub procedure of vbscript.
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
Connect to QC using AOM.
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
Is virtual object supported in low level recording mode?
Discuss quicktest professional (qtp) environment?
Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
What is the difference between a Function and Action in QTP?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
What is difference between design time and run time data table?