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 to compare 2 excel files using QTP? How to compare 2 PDF files using QTP?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
what are the utilities and drivers
How to get align property of the link on web page?
HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............
1. IS A VIRTUAL OBJECT USED WHEN THE LABEL IS NOT RECOGNIZED BY QTP
We are calling Actions in Expert View by using Run Action.but i want to know where we are saving the Actions Scripts.Pls explain??
What is difference between run time object and test object?
How to open a new test using quicktest professional?
which tpye of exceptions mostly do we face in QTP
Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank you.
Explain qtp(quick test professional)?