By Anish Pillai QTP ConceptsPosted under
Reserved Objects in QTP
0 Flares 0 Flares ×
To begin with, lets see what is an object (or test object) w.r.t. to QTP. A test object is an object used by QTP to represent an object in our AUT (Application Under Test). Each test object has a set of identification properties to identify it correctly in the application. All test objects also have a collection of associated properties and methods which we can use to retrieve/set values or to perform various operations on the object.
The most common type of classification of QTP test objects is done on the basis of type of applications in which they are used. These objects can be added in the object repository and the user can perform some action on these objects. Example: If we are automating a web application, the test objects (such as WebButton, WebEdit, Link etc.) used in the application can be classified as Web Objects. Similar is the case with other objects such as Windows objects, Java objects, ActiveX objects etc.
Reserved Objects: Reserved Objects are the objects that –
- are not stored in the object repository. [Example – DataTable object]
- enable us to retrieve/control QTP settings. [Example – QCUtil object that helps us access Quality Center Open Test Architecture (OTA) interface]
- enable us to modify QTP behavior during a run session. [Example: Recovery Object which enables us to control the recovery scenario mechanism programmatically during the run session]
Reserved Objects can be further classified into 2 categories –
a) Global QuickTest Reserved Objects: These are the reserved objects that are not environment specific and can be used with all the applications types (like Windows, Web, ActiveX applications etc).
i) DataTable Object
ii) Description Object
iii) Reporter Object … and so on…
b) Environment-Specific Reserved Objects: These are the reserved objects that are environment specific and can work only with their application types.
i) SystemUtil and Desktop objects are the reserved objects that can work only with Windows OS. These objects cant be used with other OS such as Mac, Linux etc.
ii) Another example is SAPGuiUtil object that can only be used with SAP applications.
To learn more about the different Reserved Objects in QTP, refer QTP Object Model Reference.