UFT Tutorial 6


UFT Class vi (Object Repository Part-1)

What is Object Repository?


It is a storage house to shop Test objects information.

Test Execution Process

Test/Test Script    Object Repository    AUT
Steps/Statements    Local or shared    -> Execution
                            Objects Info

Two types of Object Repository inwards UFT

a) Local Object Repository (Internal file)

UFT creates a Local Repository for every Action during Recording. Local Repository files
will live on saved along amongst the Test.

User (Tester) Can edit(Add, Rename, Delete) Local objects.

b) Shared Object Repository (External file, .tsr)
---------------------------
User creates shared object repositories either past times Adding objects or past times Exporting local object.

Shared Object Repository files are external files User(Tester) has to practice hold these files

User tin edit shared objects.

a) Add Objects:

Open the Dialog box / Window / Web page (AUT)

Select Resources card -> Object Repository Manager-> Object menu-> Add objects
-> Show the Dialog box / Window / Web page (AUT)-> Select the Filter->Click OK-> Save the Repository amongst .tsr extension.

Select the Filter

i) Selected Object Only (UFT volition shop selected object only, no tike objects)

ii) Default objects (All objects which are having functionality)

iii) All Objects (All objects including static objects)

iv) Selected Object types (Selected shape of Objects only, but user tin select 1 or to a greater extent than classes)
-----------------------------
b) By Exporting Local Objects:

Launch Local object Repository->File menu-> Export Local Objects->Enter File Name->Create

When to select Add objects characteristic too When to select Exporting Local Objects feature.

-> When at that topographic point is a few objects available inwards a window or spider web page too therefore Add objects feature.

-> When at that topographic point are hundreds of objects but nosotros desire to shop a few objects too therefore Add objects.
--------------------------------------
Operations on Object Repository

a) Add Objects (Local, Shared)

i) Add Objects to Local

Resources menu-> Object Repository->Object-> Add Objects to local-> Show the object->OK

ii) Add Objects to Shared:

Resources menu-> Object Repository manager->File->Open->Browse path of the file
-> File menu->Enable Editing
->Object-> Add Objects->Show the object->OK-Save->Close OR manager.
------------------------------------------------
b) Rename Objects(Local, Shared)

i) Rename Local Objects:

Resources -> Object Repository->Select Object & Right click-> Rename->Close Object Repository

ii) Rename Shared objects:

Resources -> Object Repository Manager->File->Open->Browse path of the file
-> File menu->Enable Editing
->Select Object & Right click-> Rename->save->Close OR manager
-----------------------------------------------------------
c) Delete Objects (Local, Shared)

i) Delete Local Objects:

Resources -> Object Repository->Select Object & Right click-> Delete->Conform Deletion-> Close Object Repository

ii) Delete Shared objects:

Resources -> Object Repository Manager->File->Open->Browse path of the file
-> File menu->Enable Editing
->Select Object & Right click-> Delete->Conform Deletion->save->Close OR manager
----------------------------------------------
d) Export Local Objects

Resources -> Object Repository->File->Export Local objects->Browse path to store->Enter file name
->Create->Close Object Repository

e) Merge Repositories

Resources -> Object Repository Manager->Tools->Object Repository merge tool->Browse path of the primary file, Secondary file
-> OK->Close->Save the Repository-Close Object Repository merge tool->Close Object Repository Manager,

f) Associate Shared Object Repositories

Test

Action 1    Repository 1 too Repository 2

Action 2    Repository two too Repository 3

Navigation-

Resources->Associate Repositories-> Click Add sign->Browse path of the Repository-> select Action-> Associate

Why nosotros require to Associate shared Repositories?

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