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


Please Help Members By Posting Answers For Below Questions

if numbers are always changing write a script for that

3791


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

2074


Explain sub procedure of vbscript.

797


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

1708


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1751


Connect to QC using AOM.

1479


wht is Manual Testing Frame work. Pls anybody can give appropriate answers

1836


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

3798


Is virtual object supported in low level recording mode?

902


Discuss quicktest professional (qtp) environment?

793


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1905


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)

1871


What is the difference between a Function and Action in QTP?

865


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

811


What is difference between design time and run time data table?

844