New Method

Description

Creates a new test.

Syntax

Visual Basic
Public Sub New( _
   Optional ByVal SaveCurrent/SaveAll As Boolean = False _
) 

Parameters

SaveCurrent

UFT One versions 2021 R1 and earlier

Indicates whether to save changes for the selected open test, component, or application area in the currently open solution before creating and opening a new test. Default=False.

SaveAll

UFT One versions 2022 and later

Indicates whether to save changes for all open tests, components, and application areas in the currently open solution before creating and opening a new test. Default=False.

Remarks

This method is valid only for tests. To create a new business component, use the NewBusinessComponent method. To create a new application area, use the NewAppArea method.

You can enter an Application.New statement without an Application.Launch statement. If UFT One is not already running when the New method is called, UFT One is automatically started.

Example

Create a New Test

See Also

Application Object