Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How many regression test suits in your appliction?

2 Answers   CTS,


How to Import data from a ".xls" file to Data table during Runtime.

10 Answers   BirlaSoft,


Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

0 Answers  


What is the Automation Process followed in your company?

1 Answers  


It is a SQL question. Write a query to find top three salaries in an EMP TABLE?

7 Answers  


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

0 Answers   Wipro,


Explain xml checkpoints.

0 Answers  


get the order no from the following orderdetails orderstring="ORD13456PNR" eg:13456

10 Answers   Oracle,


Hi, Can any one explain what is mean by Driver Script? is it AOM?

4 Answers   CTS,


What is the use of breakpoint in qtp?

4 Answers   Zensar,


wht is Driver in Integration testing. Anubody can answers it

7 Answers   CTS,


Explain the concept of object repository?

0 Answers  


Categories