Friday, June 7, 2019

6. GUI Tests Actions & Associated Repositories-3


GUI Tests Actions & Associated Repositories-3




Local Object Repositories - Action

Each action has a local object repository associated with it and it also has the highest priority
while identifying objects from multiple OR. If there are objects of the same name, class and parent hierarchy in multiple OR then the one present in the Local OR will be selected for object identification.


Multiple Associated Object Repositories – Action

Each action can have multiple objects repositories associated with it or multiple actions can have one object repository associated with it.
We can also have multiple objects repositories to be associated with a test by default.


What happens when there is a conflict between the objects in multiple object repositories?

When there are multiple objects with the same name, class and parent hierarchy in the different object repositories then the object is identified by UFT based on the local object repository and after that as per the order in the Associated Repositories Tab.


Associate an object repository dynamically

We can associate object repositories dynamically at runtime to the current action by the RepositoriesCollection object.
There are multiple methods for RepositoriesCollection object which can be used to associate
repositories.



No comments:

Post a Comment