site
stats
By Anish Pillai Anish Pillai Posted under QTP Concepts

Reserved Objects in QTP

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 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).
Examples:
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.
Examples:
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.

 

If you enjoyed this article, you can join our blog to get free email updates directly in your inbox.

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 0 Flares ×
  • Kamineni

    Nice one..thanks for sharing this article..

    • Anish10110

      Thanks Kamineni.. 🙂

  • Aruna

    Hi Anish,

    Wanted to know what exactly is "set WSshell = createobject("wscript.shell")" and what does it do?

    Thanks,
    Aruna

    • Anish10110

      wscript.shell is a feature which exposes many different kinds of functionalities such as accessing windows registry, running some tasks, handling keyboard etc. You can check the QTP help file to find more detailed information about this feature

  • raji

    simple, neat and elegant. All the articles. I can the see the amount of hard work you have put in to get this site up and running and successful.
    Long live you!!

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Email -- 0 Flares ×