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
andRemove
methods actually add and remove an SOR to and from theRepositoriesCollection
object, respectivelyThe
RemoveAll
method removes all SORs associated with the current actionThe
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