QTP - User Defined Objects


Advertisements


Sometimes, not all objects are recognized by QTP, in case the application does not use Standard Windows Classes. QTP uses Class Name to find the type of Object. Sometimes, the object is expected to behave like a button or a Combo Box etc.

When we try to add such kind of button, it might recognize as Winobject.

Hence, we can map that WinObject to behave like "CheckBox" Object type by Navigating to Tools → Object Identification, and select Environment as "Standard Windows" and click "User Defined" button. Please Note this option will not work in any other environment.

Object Repository User Defined

In the following example, an object of a specific class is made to recognize as an object of Type "button". Hence, this object inherits all properties of a button and we can use the objects that are supported by button.

Object Repository User Defined
qtp_object_repository.htm


Advertisements
E-Books Store