OpenBusinessComponent Method

Description

Opens an existing business component.

Syntax

Visual Basic
Public Sub OpenBusinessComponent( _
   ByVal BusinessComponentPath As String, _
   Optional ByVal OpenInReadOnlyMode As Boolean = False, _
   Optional ByVal SaveCurrent/SaveAll As Boolean = False _
) 

Parameters

BusinessComponentPath

The full ALM path of the business component.

OpenInReadOnlyMode

Indicates whether to open the component in read-only mode.

  • True: Opens the component in read-only mode.

  • False: Opens the component in editable mode. (Default)

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 opening the specified component.

  • True: Saves the selected open test, component, or application area in the currently open solution.

  • False: Closes the selected open test, component, or application area in the currently open solution without saving. (Default)

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 opening the specified component.

  • True: Saves all open tests, components, and application areas in the currently open solution.

  • False: Closes all open tests, components, and application areas in the currently open solution without saving. (Default)

Remarks

This method is valid only for business components and only when you are connected to an ALM project with Business Process Testing support. To open a test, use the Open method. To open an application area, use the OpenAppArea method.

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

Example

Open a Business Component

See Also

Application Object