Application Object

Relevant for: GUI tests and components

Like most automation object models, the root object of the UFT automation object model is the Application object.

The Application object represents the application level of UFT. You can use this object to return other elements of UFT such as the:

  • Test object (which represents a test or component document)

  • Options object (which represents the Options dialog box)

  • Addins collection (which represents a set of add-ins from the Add-in Manager dialog box)

You can also use the Application object to perform operations like loading add-ins, starting UFT, opening and saving tests or components, and closing UFT.

Each object returned by the Application object can return other objects, perform operations related to the object and retrieve and/or set properties associated with that object.

Every automation script begins with the creation of the UFTApplication object. Creating this object does not start UFT. It simply provides an object from which you can access all other objects, methods and properties of the UFT automation object model.

Note: You can also optionally specify a remote UFT computer on which to create the object (the computer on which to run the script). For details, see Running Automation Programs on a Remote Computer in the Introduction section of the UFT Automation Object Model Reference in the UFT Help.