How can you find Local Host Name by Using QTP?
Answers were Sorted based on User's Feedback
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 |
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 |
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 many regression test suits in your appliction?
How to Import data from a ".xls" file to Data table during Runtime.
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
What is the Automation Process followed in your company?
It is a SQL question. Write a query to find top three salaries in an EMP TABLE?
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
Explain xml checkpoints.
get the order no from the following orderdetails orderstring="ORD13456PNR" eg:13456
Hi, Can any one explain what is mean by Driver Script? is it AOM?
What is the use of breakpoint in qtp?
wht is Driver in Integration testing. Anubody can answers it
Explain the concept of object repository?