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 can we export test results to an excel sheet in QTP??? Can any one provide sample coding for this?????
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
Difference between test object and run time object?
what is vmodel?advantages and disadvantages of vmodel?
how can i use text check point in descriptive programming. or else is there any way to compare the text in the application and the text in data table.
What is the use of environment variables?
What is CMMP and CMMH?
1. How can we use same object repository and Testscript which is in English flavor to check the application in different languages thru QTP?(Chinese,Dutch,French) - I generated script in english and want to use the same script with different languages? - for windows i used regular expressions - I need for edit box,button and combobox, (English,French,Dutch,Chinese) These are the properties of a button in different languages Properties English Dutuch Chinese French x 400 758 631 601 y 673 603 592 676 windowstyle 1342242816 1342242816 1342242816 1.34E+09 windowid 2 2 2 2 windowextended style 4 4 4 4 width 120 120 120 120 visible TRUE TRUE TRUE TRUE righttoleft reading FALSE FALSE FALSE FALSE righttoleftlayout FALSE FALSE FALSE FALSE rightaligned FALSE FALSE FALSE FALSE regexpwndtitle cancel Loschen Chinese language Annuler regexpwndclass button button button button objectclass button button button button hwnd 132872 657228 656932 656782 height 33 33 33 33 focused FALSE FALSE FALSE FALSE enabled TRUE TRUE TRUE TRUE attached text abs_y 669 599 627 597 abs_x 396 754 588 672 text cancel Loschen Chinese language Annuler nativeclass button Button ordinal Identifier type,Value none none none none smartidentification FALSE FALSE FALSE FALSE comment
what is virtual object?
What is the extension of qtp local repository?
What r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP)
what is the latest version of QTP? Main difference between 9.2 and 10 version