Object Repository in QTP 9.2

Previous11121314151617181920Next

Before looking at Object Repository we need to understand some thing about objects in QTP 9.2. Objects in QTP are of two types and when we speak in terms of QTP we will not make the term objects generic instead we will speak in terms of Test Objects and Run Time Objects in Quick test Professional.


Objects in QTP are divided into Two Types they are


1. Test Objects.
2. Run time Objects.

Test Objects are the QTP defined objects that are used to interact with Run Time Objects. Test Objects information is stored in the Object Repository.

Run Time Object is the actual object in the Application Under Test.

What is Object Repository in QTP 9.2?


Object repository is the storage space for Objects. In Object repository Test Object information is stored. In order to open Object Repository Select resources from File Menu and select Object Repository. Shortcut is Press Ctrl + R

Note: Every time a new test is opened Object repository is blank by default and Application Under Test needs to learn Objects in Local i.e. We need to add Test Objects to the Object Repository. Also we cannot use Object repository of a different test.

In order to understand how Test Objects are stored in Object Repository let us generate a test script without recording. The Pre Requisites for generating the script are

1. Understand the functionality of the AUT.
2. Populate the object repository with necessary test objects.
3. Learn all the Objects into Object repository i.e. create Objects in the repository and use these objects to create the script.

Before looking at adding the objects in the repository let use look at the terms Logical Name and Test Object Details or Properties.



The Object repository mainly consists of two sections 1. Logical Name, 2. Test Object Details (Physical Description).

Logical Name: A name given to the test Objects.

Test Object Details: Some properties of the test object are loaded in the physical description part of the object repository. These properties will be used to identify a run time object during test execution.

Previous11121314151617181920Next

0 comments:

Post a Comment

/* Tynt Insight tracker ----------------------------------------------- */