What is object repository in QTP?

What is object repository in QTP?

Object Repository is a collection of object and properties with which QTP will be able to recognize the objects and act on it. When a user records a test, the objects and its properties are captured by default. Without understanding objects and its properties, QTP will NOT be able to play back the scripts.

How many types of object repository are there in QTP?

Based on Context, the Object Repository is of two types.

What is the result of merging two objects repositories in QTP?

Merging two object repositories can result in conflicts arising due to similarities between the objects they contain.

What is the benefit of using object repository in automation scripting?

An object repository is a common storage location for all objects. In Selenium WebDriver context, objects would typically be the locators used to uniquely identify web elements. The major advantage of using object repository is the segregation of objects from test cases.

How does QTP identify objects in the application?

QTP performs the operation only after identifying the object uniquely. In order to identify the object uniquely it uses property values of the respective object which will be stored in the Object Repository. Note: To view the property values of the object, QTP uses Object Spy. Object Spy is a tool available in QTP.

Which repository you have used to store the test scripts?

QAs store all the element locators in a separate file, also referred to as a property file (. properties) in Selenium. The property file stores information in a key-value pair format. This file serves as an object repository in Selenium WebDriver.

What are the different types of Object Repository in QTP?

The following are some Object Repository types in QTP: 1 Local ORs – each action will have its objects stored in its local repository 2 Shared ORs – all the actions will refer to a single read-only OR 3 Local and Shared ORs – an action can use both local and multiple shared ORs. More

How do I maintain Ors in a QTP test?

To maintain ORs in your test there is a specialized Object Repository Manager that QTP provides. It can be accessed from the menu item “ Resources->Object Repository Manager ”. In this example, we will see how to create a shared OR for a test, understand how it can be associated and see how the objects can be used.

How do I add objects to a QTP file?

The screenshot can be a sample data you could enter. Method #2) Add Objects: On choosing this option, the pointy hand gets active, QTP gets minimized and when you click on the object you wish to add, the following dialog shows up and you can add the object. Method #3) Navigate and Learn: This is the most interesting and most used way.

How to save a shared object repository in XML format?

Object Repository can be saved in XML format so that the size of the Object repository is reduced. The OR can be saved as XML by “Exporting as XML” from Shared Object Repository Window as shown below −

author

Back to Top