Application Object
Description
You can create only one instance of this object. Use the QuickTest.Application object to return other types of objects and to perform OpenText Functional Testing application level operations such as loading add-ins, creating or opening tests, and launching or closing the OpenText Functional Testing application.
Object Model
Remarks
When designing and running 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 OpenText Functional Testing 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 OpenText Functional Testing type library as follows:
Dim app as QuickTest.Application
Set app = new QuickTest.ApplicationWhen designing or running 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 test run, do not watch or evaluate a QuickTest.Application object. OpenText Functional Testing's attempt to watch itself may cause unexpected behavior.
Example
Open OpenText Functional Testing and Connect to ALM | Start OpenText Functional Testing and Open a Test with Associated Add-ins Loaded | Start OpenText Functional Testing and Open a New Test
Public Methods
ActivateView | This value can be set only before OpenText Functional Testing is started (before the Application.Launch statement). |
CurrentLicenseType | The type of license (unified or non-unified) that is currently in use. |
GetAssociatedAddinsForBC | Retrieves the list of Add-ins associated with a Business Component. |
GetAssociatedAddinsForBPT | Retrieves the list of Add-ins associated with a Business Process Test. |
GetAssociatedAddinsForTest | Retrieves the list of Add-ins associated with a test. |
GetConsumedLicenses | Returns the list of licenses consumed by OpenText Functional Testing application. |
GetStatus | The current status of the OpenText Functional Testing application. |
Launch | Opens the OpenText Functional Testing application as the logged-in Windows user. |
(Versions 2023 and later) | Opens the OpenText Functional Testing application as the specified Windows user. |
New | Creates a new test. |
(Versions 2022 and later) | Creates a new application area. |
NewBusinessComponent | Creates a new business component. |
Open | Opens an existing test. |
(Versions 2022 and later) | Opens an existing application area. |
OpenBusinessComponent | Opens an existing business component. |
OpenBusinessComponentFromBaseline | Opens an existing business component from the specified ALM baseline. |
OpenTestFromBaseline | Opens an existing test from the specified ALM baseline. |
Quit | Closes OpenText Functional Testing. |
SetActiveAddins | Specify the Add-ins to load in OpenText Functional Testing. |
ShowPaneScreen | This method takes effect only when Application.Visible=True. |
UseLicenseOfType | Uses a license of the specified license type (unified or non-unified) if it is available. |
Public Properties
Addins | Returns the Addins collection-- a collection of Addin objects. |
BusinessComponent | Returns a Test object representing the currently open business component. |
CurrentDocumentType | Indicates the type of the currently open document (test or business component). |
Folders | Returns the Folders collection object--a collection of folder paths used to resolve relative paths. |
Launched | Indicates whether OpenText Functional Testing is currently open. |
Options | Returns an Options object, which enables you to set options that apply to all tests and business components. |
TDConnection | Returns the TDConnection object, which manages the connection to ALM. |
Test | Returns a Test object, which represents the currently open test. |
UI | This property is obsolete and should be removed from automation scripts. |
Version | The current version of the open OpenText Functional Testing application. |
Visible | This value can be set before or after OpenText Functional Testing is started (before or after the Application.Launch statement). Default=False. |
WindowState | The state of the OpenText Functional Testing main window. |