Monday, 20 April 2015

QTP 2 - What are the OR's and types of object Repositories suppoted by QTP.

Object Repository is a collection of object and their properties with which QTP recognizes the objects and performs actions on it. When a user records a test, the objects and its properties are captured by default. These recorded properties are then used to uniquely identify the objects during execution.
Adding the objects to OR :
1) By recording the objects
When we record any object the object properties are stored automatically to the OR, by default in per-action/Local OR.
2) By adding the objects to OR manually through Object repository manager.
In Object repository manager we have an option of adding the objects. Again by default its local OR.
QTP has 2 types of Object Repository
1) Shared Object Repository (also called Global OR) - This type of repository is visible in all the actions and by default its in non-edit mode, although we can edit the repository. Once edited it is visible across all the actions in which it is associated. Its extension is .tsr(test shared repository)

2) Per-Action Object Repository, (also called Local OR) - Local Object Repository is used by particular actions only. Its visible only in actions. Its extension is .mtr(module test repository). Its in edit mode by default for the action. The changes made to it is only visible in particular action.

No comments:

Post a Comment