Relevant for: GUI tests and components
This task describes the different operations you can perform to manage shared object repositories using the Object Repository Manager.
If your shared object repository is stored in ALM, connect to ALM either from UFT or from the Object Repository Manager by clicking the ALM Connection button .
Select File > Enable Editing or click the Enable Editing button . The shared object repository becomes editable.
Do one of the following:
|To associate it with an action||
|To associate it with a component||
In the Object Repository Manager, select Tools > Update from Local Repository and select the object repositories to merge.
Select Object > Navigate and Learn. The Navigate and Learn toolbar opens.
For a user interface description, see Navigate and Learn Toolbar.
Note: You cannot learn Insight test objects using this option.
Click the parent object (for example, Browser, Dialog, Window) you want to add to the shared object repository to focus it. The Learn button in the toolbar is enabled.
Click the Learn button. A flashing highlight surrounds the focused window and the object and its descendants are added to the shared object repository according to the defined filter.
When you finish adding the required objects to the shared object repository, click the Close button in the Navigate and Learn toolbar. The Object Repository Manager is redisplayed, showing the objects you just added to the shared object repository.
Note: When automatically adding objects the object repository, test object names are limited to 30 characters.
In the Object Repository Manager, select Tools > Manage Repository Parameters.
In the Manage Repository Parameters dialog box, add and edit repository parameters as needed.
You can import an XML file (created using the required format) as a shared object repository. The XML file can either be a shared object repository that you exported to XML format using the Object Repository Manager, or an XML file created using a tool such as UFT Siebel Test Express or a custom built utility. You must adhere to the XML structure and format.
In the Object Repository Manager, select File > Import from XML. In the Open Dialog Box, navigate to the XML file to import..
The XML file is imported and a summary message box opens showing information regarding the number of test objects, checkpoint and output objects, parameters, and metadata that were successfully imported from the specified file.
Click OK to close the message box. The imported XML file is opened as a new shared object repository. You can now modify it as required and save it as a shared object repository.
Make sure that the shared object repository whose objects you want to export is the active window.
Make sure that the shared object repository is saved.
In the Object Repository Manager, select File > Export to XML. In the Open Dialog Box, select a location and provide a name for the XML file.
UFT exports the objects in the shared object repository to the specified XML file, and a summary message box opens showing information regarding the number of test objects, checkpoint and output objects, parameters, and metadata that were successfully exported to the specified file.
Click OK to close the message box. You can now open the XML file and view or modify it with any XML editor.