adspace


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

i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

1948


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

2217


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1869


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

2428


Tell some commonly used Excel VBA functions?

1130


what is actually contain test report? can anybody post the test report

2087


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1941


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

2014


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

3446


Can you brief the hurdles you faced during Automation testing?

1138


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

2110


When to use shared and local object repository?

1160


write script for bitmap image?

2117


if anyone has idea of the interview procedure in covansys, plz send me a mail?

2061


Hi, how can we check or avoid the memory leakage in QTP9.2?

2166