How to find the name of the machine where you are running your automation scripts in qtp?



How to find the name of the machine where you are running your automation scripts in qtp?..

Answer / Mrrcy Sagar

To find the name of the machine where your QuickTest Professional (QTP) scripts are being run, you can use the 'System.Environment.MachineName' function. This will return the name of the current machine.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad

1 Answers   Mind Tree,


actuall wat my doubt is:while doin regression testin we enter all +ve & -ve data....system has to accept +ve and reject -ve data.in such case we get a popup window sayin that wrong entry...now i wan to overcome this popup window..how do i go further....plz explain.i tried thru rec.scenario but of no use.

1 Answers  


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

1 Answers  


Where is the Bitmap checkpoint information stored?

1 Answers   Ordain Solutions,


What contains Data Driven Framework document in qtp?

1 Answers  


Tell me Three major differences between QTP & Winrunner?

2 Answers  


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1 Answers  


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

0 Answers  


diff between qtp versions from 8.5

1 Answers   Semantic Space,


Plze let me know how you can validate in the QTP that printed documents is correctly printed or not ie how we can do the validation that all the records or text are printed successfully in the printed document as per the application format requuired.

4 Answers   MBT,


In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


What is the difference between property and method?

2 Answers  


Categories