UFT Class 7
(Object Repository Part-2, Test Creation inwards UFT)
Why nosotros bespeak to Associate shared Repositories?
In social club to exercise in addition to execute Tests manually (Without Recording).
-> If it is Recording UFT creates Local repositories in addition to it uses local object
Information acre exam execution.
-> If user wants to exercise tests manually in addition to hence exercise shared object Repositories in addition to Associate.
-----------------------------------
g) Load Repositories during straight inwards the Test Script.
Syntax:
RepositoriesCollection.Add "Path of the shared object Repository file"
Ex:
RepositoriesCollection.Add "C:\Users\GVenkat\Desktop\Repository1.tsr"
--------------------------------------------------------------
h) Export Test Objects to XML / Import Test Objects from XML
Advantage:
We tin edit shared objects without UFT Tool.
Export Test Objects to XML:
Resources -> Object Repository Manager->File->Open->Browser path of the OR file
->File->Export Test Objects to XML->Enter file name->Save
Import Test Objects from XML:
Resources -> Object Repository Manager->File->Import Test Objects from XML->Browse path of the XML file
--------------------------------------------------------------
i) Map objects inwards betwixt OR in addition to AUT:
How to map:
Using View options inwards Object Repository
i) Highlight inwards Application (from OR to AUT)
ii) Locate inwards Repository (From AUT to OR)
------------------------------------------------
j) Define New Test Objects
Using this characteristic nosotros tin exercise Tests fifty-fifty though Application is non ready.
It is non recommendable feature.
How?
By getting objects data from evolution team.
Steps:
i) Get objects data from evolution team.
ii) Resources->Object->Define New Test Object->Select Environment
->Select Class of Object->Enter Name----
---------------------------------------------------
Keyword Driven Methodology:
Generating Tests manually (Without Recording) using Keywords(Objects, Methods, Functions etc...)
Steps:
i) Create Shared Object Repositories
ii) Associate Shared Object Repositories
Or
Load Repositories during straight inwards the Test Script
iii) Generate Steps / Statements
a) Using Editor View
Or
b) Using Keyword persuasion (Easy to generate Test Object statements)
Or
c) Using Step Generator
Or
d) By drag in addition to driblet objects from OR to UFT Editor(Test Object Statements only)
-----------------------------------------
What is Step Generator?
It is a Library of functions in addition to Utility objects used to generate recordable in addition to Non-recordable steps.
Navigation:
Design menu->Step Generator
Or
Shortcut primal F7
(Object Repository Part-2, Test Creation inwards UFT)
Why nosotros bespeak to Associate shared Repositories?
In social club to exercise in addition to execute Tests manually (Without Recording).
-> If it is Recording UFT creates Local repositories in addition to it uses local object
Information acre exam execution.
-> If user wants to exercise tests manually in addition to hence exercise shared object Repositories in addition to Associate.
-----------------------------------
g) Load Repositories during straight inwards the Test Script.
Syntax:
RepositoriesCollection.Add "Path of the shared object Repository file"
Ex:
RepositoriesCollection.Add "C:\Users\GVenkat\Desktop\Repository1.tsr"
--------------------------------------------------------------
h) Export Test Objects to XML / Import Test Objects from XML
Advantage:
We tin edit shared objects without UFT Tool.
Export Test Objects to XML:
Resources -> Object Repository Manager->File->Open->Browser path of the OR file
->File->Export Test Objects to XML->Enter file name->Save
Import Test Objects from XML:
Resources -> Object Repository Manager->File->Import Test Objects from XML->Browse path of the XML file
--------------------------------------------------------------
i) Map objects inwards betwixt OR in addition to AUT:
How to map:
Using View options inwards Object Repository
i) Highlight inwards Application (from OR to AUT)
ii) Locate inwards Repository (From AUT to OR)
------------------------------------------------
j) Define New Test Objects
Using this characteristic nosotros tin exercise Tests fifty-fifty though Application is non ready.
It is non recommendable feature.
How?
By getting objects data from evolution team.
Steps:
i) Get objects data from evolution team.
ii) Resources->Object->Define New Test Object->Select Environment
->Select Class of Object->Enter Name----
---------------------------------------------------
Keyword Driven Methodology:
Generating Tests manually (Without Recording) using Keywords(Objects, Methods, Functions etc...)
Steps:
i) Create Shared Object Repositories
ii) Associate Shared Object Repositories
Or
Load Repositories during straight inwards the Test Script
iii) Generate Steps / Statements
a) Using Editor View
Or
b) Using Keyword persuasion (Easy to generate Test Object statements)
Or
c) Using Step Generator
Or
d) By drag in addition to driblet objects from OR to UFT Editor(Test Object Statements only)
-----------------------------------------
What is Step Generator?
It is a Library of functions in addition to Utility objects used to generate recordable in addition to Non-recordable steps.
Navigation:
Design menu->Step Generator
Or
Shortcut primal F7