Object
Repository: displays a tree of all
objects in the current component or in the current action or entire test(
depending on the object repository mode you selected).
we can view or modify the test object description of any test object in the
repository or to add new objects to the repository.
Quick Test
stores the definitions for application objects in a file called the Object
Repository. As you record your test, Quick Test will add an entry for each item
you interact with. Each Object Repository entry will be identified by a logical
name (determined automatically by Quick Test), and will contain a set of
properties (type, name, etc) that uniquely identify each object. Each line in
the Quick Test script will contain a reference to the object that you
interacted with, a call to the appropriate method (set, click, check) and any
parameters for that method (such as the value for a call to the set method).
The references to objects in the script will all be identified by the logical
name, rather than any physical, descriptive properties.
There are basically two types of object
repository.
- Ø Local object repository(per action)
- Ø Shared object repository
Local object repository:
Local
object repository is the object repository which is specific to QTP test (for
e.g. test1) and not available for another QTP test (e.g. test2).
The extension of Local object repository
is .mtr
.mtr (module test repository) is the
extension of per action repository which contains checkpoints and other stuffs.
It is a binary file.
Shared object repository:
Shared
object repository is the global object repository which we can use for any QTP
test by associating it. The extension of shared object repository is .tsr. (Test shared
repository).
No comments:
Post a Comment