How do we Access, retriew and edit the runtime objects in
Automation Testing using QTP

Answer Posted / baba

We cannot edit runtime objects in Automation Testing, bcoz
Runtime objects means the Objects available in AUT,
we can only use the properties available for objects and we
can change the property/properties available in OR during
runtime by using SETTOPROPERTY

We can retrieve the property and its value by using

GetRoProperty

eg:
dialog("Login").Activate
dialog("Login").WinButton("OK").SetTOProperty "text","Cance"
print dialog("Login").WinButton("OK").GetROProperty("text")

it returns "Cance"

it is changing the property value during runtime.

please check it once in ur QTP

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the syntax to import/export xls into qtp.

584


How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1536


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

1509


If the objects hierarchy is changing from build to build, then how you will handle that condition?

613


What is checkpoints for quicktest professional?

544






How to analyzing test results using quicktest professional (qtp)?

582


Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

1401


What is the file extension of the code file in qtp?

557


What do you to script when objects are removed from application?

609


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3005


To which environments does quicktest professional (qtp) supports?

584


we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?

1575


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1443


how did u use automating testing tools in ur job?

1480


Tell me about your project? please help me how to tell about insurance project

1526