Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - Explain about opening notepad in QTP and writing of test result in notepad?




286
views
asked marvit August 20, 2014 02:34 AM  

Explain about opening notepad in QTP and writing of test result in notepad?


           

1 Answers



 
answered By Dharma   0  
This script will use for the perform this
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)

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert