Application Object > Methods > OpenTestFromBaseline Method
OpenTestFromBaseline Method
Description
Opens an existing test from the specified ALM baseline.
Syntax
Visual Basic
Public Sub OpenTestFromBaseline( _
   ByVal TestPath As String, _
   ByVal Library As String, _
   ByVal Baseline As String, _
   Optional ByVal SaveCurrent As Boolean = False _
) 
Parameters
TestPath
The full ALM path of the test to open.
Library
The full library path for the library containing the baseline. For example: Libraries\MyLibFolder\LibName
Baseline
The name or ID of the baseline.  If you specify the baseline ID, then enter an empty string for the Library argument.
SaveCurrent
Indicates whether to save changes for the currently open document before opening the specified test.

True--Saves the currently open document.

False--Closes the currently open document without saving. (Default).

Remarks
When you open a test from a baseline, it always opens in read-only mode.  To open a version-controlled test for editing, use the Test.CheckOut method and then open the test using the Application.Open method.
Example
See Also