Types of Object Repository
Types of Object Repository
UFT supports various applications. But it won’t support all the applications by default. We
need to load the corresponding add-in. For example, if you are going to use QTP for a java
application you need to load java add-in.
This add-in concept will help UFT to support wide-range of applications without
compromising the performance. And, it will improve object identification reliability.
Default Support
3. ActiveX controls
You can select the required Add-ins while starting the UFT.
Add-in manager screen will appear when opening UFT. In the screen you can select the required
add-ins using the check-box.
If you don’t want to see this add-in Manager again, you can uncheck the “Show on Startup”
checkbox.
Session objectives
Object Identification
Checkpoints
Transactions
Summary
References
Default repository
Cannot be reused
Here Action1 and Action 2 of same test will have different object repositories.
Same object repository for related functionalities across different actions or scripts.
We can also specify additional properties for objects other than mandatory ones that appear when
the objects are captured.
Reusability of objects
Changes in object properties can be updated directly in the shared object repository model
The object repository can be managed using a folder containing all the object repositories which
have been used throughout the project.
Files under this which contain object repositories (which are stored as .tsr files) are stored module
wise.
This utility helps in editing a repository file (*.tsr). Any object repository file can be opened
and simple changes like adding an object, editing or modifying an existing object or deleting and
object can be performed.
Associate Repositories
Any repository that is loaded should be associated to appropriate action. This utility helps
the users in associating different global repositories to specific actions.
User can specify properties to be used for identification in order to distinguish between two
objects of the same class object.
Mandatory properties:
UFT has list of mandatory properties, for each type of object, which it always learns.
When we run the script UFT uses all the mandatory properties to identify the object. It uses
assistive properties when mandatory properties are not enough to identify an object.
We can change the mandatory properties or assistive properties based on the application.
We can add /remove few properties in mandatory properties or assistive properties so that UFT
identifies the object when we run the script
How to change properties of objects?
Choose the Environment you are going to work on. Eg: Web, Windows, Visual Basic
Choose the required object under the environment. Eg: Link, WebButton for Web
Select the properties you want to make mandatory or assistive by selecting the option