UFT Object Repository


UFT Object Repository
It is a storage house for storing Test Objects information.

UFT has 2 types of Object Repository:
i) Local Object Repository
>UFT creates a local repository for every activity during Recording.

>User (Tester) tin edit local objects.

> UFT maintains Local repositories along alongside the Test script

> User likewise tin exercise Local object Repositories.

> Local objects tin last exported every bit Shared objects.
-----------------------------------------------------
ii) Shared Object Repository (.tsr)

User creates shared object repositories either yesteryear Adding objects or yesteryear exporting local objects.

In ii ways Shared object Repositories tin last created:

a) By Add Objects

b) By export Local objects
Shared object repository file is external file, user involve to hold shared repositories.

User tin edit shared objects.

Navigation to exercise Shared object Repository:
Resources carte du jour -> Object Repository Manager
-> Object menu-> Add objects (Or job Tool bar option)
-> Show the Dialog box/window/web page -> OK
-> Select required option-> click OK -Save->
browse path to store-> travel inward file cite in addition to Save
-> Close Object Repository Manager
-----------------------------------------
Options:
----------
o Selected Object alone - Stores selected object only, no tyke objects.

o Default object types -stores all default objects, which are having functionality

o All object types - stores all objects including static objects (which are non having functionality)

o Selected objects types (user has to select Object class/s, hence it volition shop objects from those classes)
---------------------------------------------------
Operations on Object Repository:
 

i) Add objects

a) Add object to Local Repository:
Resources carte du jour -> Object Repository -> Object -> Add objects to Local
-> Show the object -> click OK.

b) Add object to Shared Repository:
Resources menu-> Object Repository director -> File -> Open
-> Browser path of the file -> File menu-> Enable editing -> Object
-> Add objects-> Show the object -> OK -> Save -> Close Object Repository manager
-------------------------------------------
ii) Rename Objects
a) Rename Local Objects
Resources carte du jour -> Object Repository ->Select the object in addition to correct click
-> Rename -> rename the value-> Close Object Repository

b) Rename Shared objects
Resources menu-> Object Repository director -> File -> Open
-> Browser path of the file -> File menu-> Enable editing
->Select the object in addition to correct click
-> Rename -> rename the value-> Save -> Close Object Repository manager
---------------------------------------------
iii) Delete Objects

a) Delete Local Object/s:Resources carte du jour -> Object Repository ->Select the object in addition to correct click
-> Delete -> accommodate the Deletion-> Close Object Repository

b) Delete Shared objects:
Resources menu-> Object Repository director -> File -> Open
-> Browser path of the file -> File menu-> Enable editing
->Select the object in addition to correct click
-> Delete -> accommodate the Deletion-> Save -> Close Object Repository Manager
-------------------------------------------
iv) Export Local objects

Resources carte du jour -> Object Repository -> File menu
-> Export Local objects -> Browser path to store-> Enter file cite in addition to create
-> Close Object Repository

When to pick out Add objects feature:
> If nosotros convey small-scale total objects in addition to desire to shop maximum objects

When to pick out Export Local objects feature:
> If nosotros convey hundreds of objects but desire to shop a few objects hence tape the navigation in addition to export local objects.
------------------------------------------
v) Merge Repositories
Resources menu-> Object Repository director -> Tools menu
-> Object Repository merge Tool
-> Browser path of the primary file
->Browser path of the secondary file -> Click OK - Close Statistics dialog
-> Save the File -> Close Object Repository merge Tool
-> Close Object Repository manager
------------------------------------------------
vi) Associate shared object Repositories
Why nosotros involve to associate shared repository files alongside Actions?

In guild to exercise in addition to execute Tests manually nosotros associate Object Repository manager.

UFT supports Many to many association

Action 1 Repository 1, 2

Action 2 Repository 2, 3

Navigation:
--------------
Resources menu-> associate Repositories -> Click + sign (Add Repository)
-> Browse path of the Repository
-> Select Action in addition to Associate
--------------------------------------------
vii) Load Shared Repositories during execution.
Syntax:

RepositoriesCollection.Add "Path of the shared object Repository"

Ex:

RepositoriesCollection.Add "C:\Users\gcreddy\Desktop\Login.tsr"
-----------------------------------------------
viii) Map objects inward betwixt OR in addition to AUT.

Using sentiment options inward Object Repository nosotros tin map objects inward betwixt OR in addition to AUT.

i) Highlight inward Application (Works from OR to AUT)

ii) Locate inward Repository (Works from AUT to OR)
-------------------------------------------------
ix) Export Test objects to XML/Import Test objects from XML
Using XML format, nosotros tin edit Test objects without UFT Tool.

----------------------------------
x) Define New Test Objects
Using this "Define New Test Objects", nosotros tin exercise examination scripts fifty-fifty though Application is non ready, but it is non recommendable.

How to define novel examination objects:

By getting Objects data from developers
----------------------------------------------------

Sumber http://www.gcreddy.com/
Post a Comment (0)
Previous Post Next Post