Launch Method
Description
Opens the UFT application.
Syntax
Visual Basic
Public Sub Launch() 
Remarks

Before launching UFT for the first time in a script, you must create an application object using one of the following syntax options:

Dimappas QuickTest.Application
Setapp=new QuickTest.Application

or

Set app = CreateObject("QuickTest.Application")

For more information, see Application object.

Most automation statements can be performed only after the Launch method has been performed. Before launching the application, you can:

  • Check whether UFT is already open (Application.Launched)
  • Check UFT's current status--another method for finding out whether UFT is already open(Application.GetStatus)
  • Return an Addins collection object, in which you can specify the add-ins you want to load (Application.Addins)
  • Retrieve associated add-ins (Application.GetAssociatedAddinsForTest)
  • Set the add-ins you want to load when UFT starts (Application.SetActiveAddins)
  • Instruct UFT whether to open in visible or minimized mode (Application.Visible)
  • Specify which view (Keyword View or Editor) to display when UFT opens, if opening UFT in Visible mode (Application.ActivateView)
  • Instruct UFT to start and open a new, blank test or component (Application.New or Application.NewBusinessComponent)
  • Instruct UFT to start and open a specified, existing test or component (Application.Open or Application.OpenBusinessComponent)

 

Example
See Also