Object Repository in QTP

Object repository is a interface between QTP Test scripts and the application under test which contains logical name ,physical description of the objects.The object repository window displays a tree structure of objects in the current action.

Types of Objects in QTP

Type 1 : Test Objects

  1. Objects in the object repository are Test Objects
  2. Test Objects are helps to identify and checks the objects during run time.

Type 2 : Run Time Objects

  1. Objects in Test scripts are Run time objects.
  2. It is the actual objects in web application on which methods are used during run session.

Types of Object Repository in QTP

Type 1 : Per action object repository

Per action object repository is associated with one specific action where it can only associated action can access stored objects.

Type 2 : Shared Object Repository

Shared object repository stores objects which can access by multiple action means this repository can useful for multiple actions in QTP.

Object Repository Manager

The object repository manager useful to open multiple shared object repositories and modify as needed.We can open shared object repositories both from the file system.

Object Repository manager works as 

  1. Creating new repository
  2. Opening multiple repositories
  3. We can modify object repository
  4. Manipulate the objects
  5. manage repository parameters
  6. modify test objects
  7. we can merge repositories

Object Repository Comparison Tool

Using this tool we can merge multiple repositories in to one repository ans associate this repository to test scripts.

Object Spy

Object spy used for view objects properties and operations of application under test.It displays object hierarchy y tree,properties,native properties which is run time properties and identification properties which is test object properties.

Post a Comment

0 Comments