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
Application ObjectAddins CollectionAddin ObjectTest ObjectActions CollectionAction ObjectAction ObjectDataTable ObjectEnvironment ObjectLastRunResults ObjectParameterDefinitions CollectionParameterDefinition ObjectTestSettings ObjectFoldersOptions CollectionOptions ObjectActiveScreenOptions ObjectJavaOptions ObjectObjectIdentification ObjectRunOptions ObjectSAPOptions ObjectTEOptions ObjectWebOptions ObjectWSOptions ObjectWindowsAppsOptions ObjectTDConnection ObjectTDOTA ObjectTest ObjectActions CollectionAction ObjectAction ObjectDataTable ObjectEnvironment ObjectLastRunResults ObjectParameterDefinitions CollectionParameterDefinition ObjectTestSettings Object
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 Application

    or, 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.Application

    When 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
Public Methods
Public Method ActivateViewThis value can be set only before UFT One is started (before the Application.Launch statement).
Public Method CurrentLicenseTypeThe type of license (unified or non-unified) that is currently in use.
Public Method GetAssociatedAddinsForBC

Retrieves the list of Add-ins associated with a Business Component.

Public Method GetAssociatedAddinsForBPT

Retrieves the list of Add-ins associated with a Business Process Test.

Public Method GetAssociatedAddinsForTest

Retrieves the list of Add-ins associated with a test.

Public Method GetConsumedLicensesReturns the list of licenses consumed by UFT One application.
Public Method GetStatusThe current status of the UFT One application.
Public Method LaunchOpens the UFT One application.
Public Method NewCreates a new test.
Public Method NewBusinessComponentCreates a new business component.
Public Method OpenOpens an existing test.
Public Method OpenBusinessComponentOpens an existing business component.
Public Method OpenBusinessComponentFromBaselineOpens an existing business component from the specified ALM baseline.
Public Method OpenTestFromBaselineOpens an existing test from the specified ALM baseline.
Public Method QuitCloses UFT One.
Public Method SetActiveAddins

Specify the Add-ins to load in UFT One.

Public Method ShowPaneScreenThis method takes effect only when Application.Visible=True.
Public Method UseLicenseOfTypeUses a license of the specified license type (unified or non-unified) if it is available.
Public Properties
Public Property AddinsReturns the Addins collection-- a collection of Addin objects.
Public Property BusinessComponentReturns a Test object representing the currently open business component.
Public Property CurrentDocumentTypeIndicates the type of the currently open document (test or business component).
Public Property FoldersReturns the Folders collection object--a collection of folder paths used to resolve relative paths.
Public Property LaunchedIndicates whether UFT One is currently open.
Public Property OptionsReturns an Options object, which enables you to set options that apply to all tests and business components.
Public Property TDConnectionReturns the TDConnection object, which manages the connection to ALM.
Public Property TestReturns a Test object, which represents the currently open test.
Public Property UIThis property is obsolete and should be removed from automation scripts.
Public Property VersionThe current version of the open UFT One application.
Public Property VisibleThis value can be set before or after UFT One is started (before or after the Application.Launch statement). Default=False.
Public Property WindowStateThe state of the UFT One main window.
See Also