Application Object > Methods > OpenBusinessComponent Method
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 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
Indicates whether to save changes for the currently open document before opening the specified component.
True--Saves the currently open document.

False--Closes the currently open document 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.

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

Example
See Also