How to find local host name using QTP?

Answer Posted / arunsingh

LHN=Environment.value("LocalHostName")
msgbox LHN

Run it, you will get you local host name.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the basic concept of quicktest professional?

735


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1797


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1553


Which scripting language used by quicktest professional (qtp)?

871


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3493


How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

2724


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

1133


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1971


Discuss quicktest professional (qtp) environment?

751


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1946


What is the use of text output value in quicktest professional?

683


What is the difference between Keyword Driven test and Data Driven test?

1973


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1772


Why qtp always start action1 and does not start action?

814


Generic function to search for the unique link in webtable and click on it

2721