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

Explain the check points in quicktest professional (qtp)?

778


How to integrate the qualitycenter with qtp

1986


What are the different types of action?

749


What is difference in global and action sheet in qtp?

837


What are the types of object repositories? Which one is you using?

869


Mention the different actions types of qtp.

783


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1868


Explain xml checkpoints.

848


What is recovery scenario in qtp?

772


How to use transactions in qtp?

741


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

764


How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)

2107


what is the difference between built-i function and In-built function?

1892


what is supply chain management?

2336


What test you perform mostly? Regression or retesting in your testing process?

798