Book Image

Advanced UFT 12 for Test Engineers Cookbook

Book Image

Advanced UFT 12 for Test Engineers Cookbook

Overview of this book

Table of Contents (18 chapters)
Advanced UFT 12 for Test Engineers Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Loading shared object repositories (RepositoriesCollection)


The RepositoriesCollection object provides methods to manage the Shared Object Repositories (SOR) associated with the actions of the test. The following screenshot shows the methods and properties of the RepositoriesCollection object:

As you might suspect, we can see a recurrent pattern again; the object is very similar to a Dictionary with methods such as Add, Remove, RemoveAll, and the properties Count and Item. All methods and properties operate in the context of the current action accordingly:

  • The Add and Remove methods actually add and remove an SOR to and from the RepositoriesCollection object, respectively

  • The RemoveAll method removes all SORs associated with the current action

  • The MoveToPos method changes the priority order of an SOR (that is, its index in the collection)

  • The Find method returns the index of a repository within the collection

Getting ready

From the File menu, navigate to New | Test, or use the Ctrl + N shortcut...