Manage shared object repositories using automation
Relevant for: GUI tests and components
This topic describes the Object Repository automation object model and explains how to manage shared object repositories using the model.
Use the Object Repository automation object model
UFT One provides an Object Repository automation object model that enables you to manage UFT One shared object repositories and their contents from outside of UFT One. The automation object model enables you to use a scripting tool to access UFT One shared object repositories using automation.
Just as you use the UFT One automation object model to automate your UFT One operations, you can use the objects and methods of the Object Repository automation object model to write scripts that manage shared object repositories, instead of performing these operations manually using the Object Repository Manager. For example, you can add, remove, and rename test objects, import from and export to XML, or retrieve and copy test objects.
After you retrieve a test object, you can manipulate it using the methods and properties available for that test object class. For example, you can use the GetTOProperty and SetTOProperty methods to retrieve and modify its properties.
Automation programs are especially useful for performing the same tasks multiple times or on multiple shared object repositories. You can write your automation scripts in any language and development environment that supports automation. For example, you can use VBScript, JavaScript, Visual Basic, Visual C++, or Visual Studio .NET.
Use the UFT One Object Repository Automation Reference
The UFT One Object Repository Automation Reference is a Help file that provides detailed descriptions, syntax information, and examples for the objects and methods in the UFT One shared object repository automation object model.
The Help topic for each automation object includes a list and description of the methods associated with that object. Method Help topics include detailed description, syntax, return value type, and argument value information.
For more details, see the UFT Object Repository Automation Reference.
Note: The syntax and examples in the Help file are written in VBScript-style. If you are writing your automation program in another language, the syntax for some methods may differ slightly from what you find in the corresponding Help topic. For details on syntax for the language you are using, see the documentation included with your development environment or to general documentation for the programming language.