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 many types of status are there?

788


explain keyword driven framework with banking domain?

1745


If I change the object name in one action will it be updated in all the actions? Or not?

799


What are the advantages of parameterization ?

792


Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1675


Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance

1610


What are the different kinds of test steps?

775


How to creating an output value using quicktest professional?

719


what is stepin & stepout?

1594


Which scripting language used by quicktest professional?

711


What are the flaws in water fall model and how to overcome it?

761


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

1970


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

768


What phases are involved in testing an application in qtp?

737


What is checking bitmaps?

755