OBJECT REPOSITORY
Object Repository:
Object
repository is a storage place where one can store the objects information and
it also acts as interface between
n the test script and the
AUT(application under test) in order to identify the original objects during
execution
Types of Object Repository:
There
are two types of object repository they are
1.
local Repository
2.
Shared Repository
(1). Local Repository:
If
at all this type is selected as an object repository then the QTP will be
automatically creating and managing an individual repository for every action.
(2). Shared
Repository:
Shared
repository has to be created and managed manually once a shared repository to
created it can be shared among number of tests
Advantages:
·
Easy to maintain
·
Re-usability
Navigation
for creating a shared Repository or Converting a per action in to shared:
·
Collect the objects information
in to the object repository
·
Click on export
·
Browse the desired location
·
Specify the file name with .TSR
extension
·
Click on save button
Navigation
for Creating the Shared Repository to the currant test:
·
Activate the menu item test
·
Select the option settings
·
Select the resources tab
·
Select the option shared in the
object repository type section
·
Browse the desired repository
file
·
Click on apply & OK
Note: .TSR means Test Shared
Repository
Navigation for adding the objects
in to the object repository:
·
Open the
object repository
·
Click on
add objects button
·
Click on
the title bar of the window
·
Click on
ok
·
Select
one of the following options
o Only the selected objects
o Selected objects and all its direct children
o Selected objects and all its descendents
·
Click on OK
Navigation
for deleting the objects form the object repository:
·
Select
the desired object to be deleted in the object hierarchy
·
Right
click on it
·
Select the option delete

·
Confirm
the deleting by clicking on
Navigation
for Re naming the objects:
Select the desired object in
the object hierarchy
·
Right
click on it
·
Select
the option Rename
·
Specify
the desired name
Navigation
for updating the properties list:
·
Select
the desired object in the object hierarchy
·
Click on
add/Remove button
·
Select
the desired properties to be added in to the properties list
·
Deselect
the properties to be removed from the properties list
·
Click on
OK
Highlight:
Highlight
button is used for highlighting the corresponding object in the AUT so that a
test engineer can clearly understand which objects information is that.
No comments:
Post a Comment