Application Object
Description
You can create only one instance of this object. Use this object to return other UFT One objects and to perform application level operations such as loading add-ins, creating or opening tests, and launching or closing the UFT One application.
Object Model

Remarks
When designing and running UFT One automation scripts in a tool that supports the loading of type libraries for editing and running scripts, you can use the new operator to load the UFT One type library before creating the QuickTest Application object.
Syntax:
Dim app as Application
Set app = new Applicationor, if other type libraries are loaded in your tool, specify the UFT One type library as follows:
Dim app as QuickTest.Application
Set app = new QuickTest.ApplicationWhen designing or running UFT One automation scripts in a tool that does not support the loading of type libraries, use the CreateObject() function to create the QuickTest Application object.
Syntax:
Set app = CreateObject("QuickTest.Application")
In a UFT One test run, do not watch or evaluate a QuickTest.Application object. UFT One's attempt to watch itself may cause unexpected behavior.
Example
Open UFT One and Connect to ALM | Start UFT One and Open a Test with Associated Add-ins Loaded | Start UFT One and Open a New Test
Public Methods
![]() | This value can be set only before UFT One is started (before the Application.Launch statement). |
![]() | The type of license (unified or non-unified) that is currently in use. |
![]() | Retrieves the list of Add-ins associated with a Business Component. |
![]() | Retrieves the list of Add-ins associated with a Business Process Test. |
![]() | Retrieves the list of Add-ins associated with a test. |
![]() | Returns the list of licenses consumed by UFT One application. |
![]() | The current status of the UFT One application. |
![]() | Opens the UFT One application as the logged-in Windows user. |
(UFT One version 2023 and later) | Opens the UFT One application as the specified Windows user. |
![]() | Creates a new test. |
(UFT One version 2022 and later) | Creates a new application area. |
![]() | Creates a new business component. |
![]() | Opens an existing test. |
(UFT One version 2022 and later) | Opens an existing application area. |
![]() | Opens an existing business component. |
![]() | Opens an existing business component from the specified ALM baseline. |
![]() | Opens an existing test from the specified ALM baseline. |
![]() | Closes UFT One. |
![]() | Specify the Add-ins to load in UFT One. |
![]() | This method takes effect only when Application.Visible=True. |
![]() | Uses a license of the specified license type (unified or non-unified) if it is available. |
Public Properties
![]() | Returns the Addins collection-- a collection of Addin objects. |
![]() | Returns a Test object representing the currently open business component. |
![]() | Indicates the type of the currently open document (test or business component). |
![]() | Returns the Folders collection object--a collection of folder paths used to resolve relative paths. |
![]() | Indicates whether UFT One is currently open. |
![]() | Returns an Options object, which enables you to set options that apply to all tests and business components. |
![]() | Returns the TDConnection object, which manages the connection to ALM. |
![]() | Returns a Test object, which represents the currently open test. |
![]() | This property is obsolete and should be removed from automation scripts. |
![]() | The current version of the open UFT One application. |
![]() | This value can be set before or after UFT One is started (before or after the Application.Launch statement). Default=False. |
![]() | The state of the UFT One main window. |
See Also