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

How to use setroproperty?

576


What are the main differences of qtp and win runner?

596


Is it possible to merge two object repository files in qtp?

623


How to use reporter.report event in qtp ?

558


What are the different types of recording modes in qtp? Which will be used when?

572






In qtp, explain what is qrs file?

584


Explain the features of quick test pro(qtp)?

579


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1380


How to change the priorities of the recovery scenario properties?

595


What is a data driven test in qtp?

590


Explain how Does Run time data (Parameterization) is handled in QTP?

559


How many types of recording modes in qtp?

590


what are the utilities and drivers

1847


What is the expert view?

555


What is qtp window?

568