How can you find Local Host Name by Using QTP?

Answer Posted / sudheer

If u want 2 knw the local host name
u can Run B'low Script u'll get the LHN name.

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




SuDhEeR BONAM...:)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)

1455


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1504


What are benefits of qtp?

579


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

3564


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

557






what is object and child object.. explain ..if possible give some example for better understanding ..

1529


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1424


Explain measuring transaction.

586


How many types of Automation frameworks are there in UFT? Describe them.

554


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1331


Can we run test with out adding object in object repository? How it is possible?

540


how to test use the quality control .how to verify the image verification

2542


Hi Samrat, Thank u very much, what u said it is right.

1341


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1272


How will you test a keyboard?

599