Application Object
Application Object
Description

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

Object Model
Application Object Addins Collection Addin Object Test Object Actions Collection Action Object Action Object DataTable Object Environment Object LastRunResults Object ParameterDefinitions Collection ParameterDefinition Object TestSettings Object FoldersOptions Collection Options Object ActiveScreenOptions Object JavaOptions Object ObjectIdentification Object RunOptions Object SAPOptions Object SRFConnectionOptions Object TEOptions Object WebOptions Object WSOptions Object WindowsAppsOptions Object TDConnection Object TDOTA Object Test Object Actions Collection Action Object Action Object DataTable Object Environment Object LastRunResults Object ParameterDefinitions Collection ParameterDefinition Object TestSettings Object UI Object
Remarks

When designing and running UFT 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 type library before creating the QuickTest Application object. 

Syntax:

Dimappas Application
Setapp=new Application

or, if other type libraries are loaded in your tool, specify the UFT type library as follows:

Dimappas QuickTest.Application
Setapp=new QuickTest.Application

When designing or running UFT 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")

Note: This help refers to the QuickTest Application object, which can be used to represent versions of both QuickTest and UFT.

Example
Public Methods
Public Method ActivateView This value can be set only before UFT is started (before the Application.Launch statement).
Public Method CurrentLicenseType The type of license (unified or non-unified) that is currently in use.
Public Method GetAssociatedAddinsForBC

This method can be called either before or after you start UFT (before or after the Application.Launch method).

Public Method GetAssociatedAddinsForBPT

This method can be called either before or after you start UFT (before or after the Application.Launch method).

Public Method GetAssociatedAddinsForTest

This method can be called either before or after you start UFT (before or after the Application.Launch method).

Public Method GetConsumedLicenses Returns the list of licenses consumed by UFT application.
Public Method GetStatus The current status of the UFT application.
Public Method Launch Opens the UFT application.
Public Method New Creates a new test.
Public Method NewBusinessComponent Creates a new business component.
Public Method Open Opens an existing test.
Public Method OpenBusinessComponent Opens an existing business component.
Public Method OpenBusinessComponentFromBaseline Opens an existing business component from the specified ALM baseline.
Public Method OpenTestFromBaseline Opens an existing test from the specified ALM baseline.
Public Method Quit Closes UFT.
Public Method SetActiveAddins You can use this method only before starting UFT (before the Application.Launch statement).
Public Method ShowPaneScreen This method takes effect only when Application.Visible=True.
Public Method UseLicenseOfType Uses a license of the specified license type (unified or non-unified) if it is available.
Public Properties
Public Property Addins Returns the Addins collection-- a collection of Addin objects.
Public Property BusinessComponent Returns a Test object representing the currently open business component.
Public Property CurrentDocumentType Indicates the type of the currently open document (test or business component).
Public Property Folders Returns the Folders collection object--a collection of folder paths used to resolve relative paths.
Public Property Launched Indicates whether UFT is currently open.
Public Property Options Returns an Options object, which enables you to set options that apply to all tests and business components.
Public Property TDConnection Returns the TDConnection object, which manages the connection to ALM.
Public Property Test Returns a Test object, which represents the currently open test.
Public Property UI This property is obsolete and should be removed from automation scripts.
Public Property Version The current version of the open UFT application.
Public Property Visible This value can be set before or after UFT is started (before or after the Application.Launch statement). Default=False.
Public Property WindowState The state of the UFT main window.
See Also