How can you find Local Host Name by Using QTP?

Answers were Sorted based on User's Feedback



How can you find Local Host Name by Using QTP?..

Answer / raghavendra c

Thro' the built-in Environment variables we can fetch the
system environment details. One of such variable is
localhostname.
Syntax :- msgbox environment("LocalHostname")

Is This Answer Correct ?    7 Yes 1 No

How can you find Local Host Name by Using QTP?..

Answer / 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

How can you find Local Host Name by Using QTP?..

Answer / nani

Hi let u try this code to know u r user name and local host
name.

x= Environment.Value("UserName")

msgbox x





Set sys = CreateObject
("ADSystemInfo")

msgbox "UserName: " &
sys.UserName

msgbox "Computer: " & sys.ComputerName





x=Environment.Value("UserName")

Nani..

Is This Answer Correct ?    3 Yes 1 No

How can you find Local Host Name by Using QTP?..

Answer / sushma

msgbox Environment("LocalHostName")

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More QTP Interview Questions

Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

0 Answers  


1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me

0 Answers  


How to send the qtp results file by email (Lotus notes).

1 Answers   TCS,


what is option explicit?

5 Answers  


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

0 Answers   Wells Fargo,


Hello, I am facing problem to check textpoint for mercury application . I have inserted checkpoint to check flight summary for place of departure and arrival with datatable and script look like "Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").Check CheckPoint("Book a Flight: Mercury_4")" but while I am executing this script at last my check point gets fail and display Text Checkpoint: captured "" between Summary and 4/31/2008FLIGHT , expected "Acapulco" Match case: ON Exact match: OFF Ignore spaces: ON I think value from data table is not fatched so please guide me what I have to do to overcome this problem.. Thanks

0 Answers  


anybody give me the real time example for descriptive programming of web application

7 Answers  


HI All i need one suggestion.is there any companies taking corresponding degree courses. i have 3+ yrs exp in QTP and i am working north side. iam looking for job in south.

1 Answers  


How to use library files in QTP? how we can call these files in to script?

4 Answers   Virtusa, Wipro,


What is ‘object spy’ and what is the function of object spy in qtp?

0 Answers  


Which function is used to accesses the Properties from Repository Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


What is an Custom Object in QTP ?

1 Answers  


Categories