How to find local host name using QTP?

Answer Posted / sailaja

The above code is giving error at for loop
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)

This will work fine.

Thank you
Sailaja

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I use Call dlls in QTP ?

1905


What are the types of object repository?

661


what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

2412


What is the use of sendkeys and what are send keys

2052


What are the different types of recovery operation?

633






What is an expert view and keyword view?

663


How to use the object spy in quicktest professional (qtp) 8.0 version?

588


How to use debug tools?

2284


can the activities of test case design be automated?

1545


What are the different recording modes?

644


Is qtp supports uni-code?

707


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1650


can any one say that where we can download the QTP trail version ??????????

1451


What is test object?

786


Which functionalities of QTP used in banking project? pls any say answer?

1529