UFT
Introduction to UFT Installation of UFT UFT GUI Recording the application Directory structure and file extension of UFT test Basic UFT concepts Object Spy Test Settings Properties Test Run Settings Environment Recovery Associating library files Object Identification mechanism Object repository Object repository Manager Associating repositories with UFT tests Description programming SystemUtil Datatable CryptDotNetFactory Extern OptionalStep PathFinder MercuryTimer RandomNumber Recovery Reporter RepositoriesCollection TextUtil XmlUtil Launching applications Loading ini fileDifference between QFL and VBS file Automating web applications automating Windows applications Err object Recovery Scenarios Handling Databases Mathematical operations Create new Excel workbook file Read and Edit Excel workbook Delete excel workbook file Launching the UFT using Script UFT Vs Selenium UFT Vs Appium UFT vs LeanFT Limitations and drawbacks of UFTRepositoriesCollection Object in UFT
A test can have multiple shared object repositories associated with it. We can manage such repositories using RepositoriesCollection object. RepositoriesCollection object allows you to manage the shared object repositories at run time. You can associate and remove the associated repositories at run time using this object. Here is the example that illustrates how to use RepositoriesCollection object.
'Remove all associated repositories
RepositoriesCollection.RemoveAll()
'Add the repository with name r1.tsr
RepositoriesCollection.Add("r1.tsr")
'Print total number of associated repositories
msgbox "Total no of associated repositories -> " & RepositoriesCollection.Count
'get the name of the repository file
msgbox "Name of the first repository -> " & RepositoriesCollection.Item(1)
'Find the position of the specific object repository
position = RepositoriesCollection.Find("r1.tsr")
'Add the repository with name r2.tsr
RepositoriesCollection.Add("r2.tsr")
'Print total number of repositories
msgbox "Total no of associated repositories -> " & RepositoriesCollection.Count
'Move the repository from position 1 to position 2
RepositoriesCollection.MoveToPos 1,2
'Remove the repository at specific position
RepositoriesCollection.Remove(position)
Complex problems, Simple Solutions