Main Content

getBaselineRun

Class: sltest.testmanager.TestIterationResult
Namespace: sltest.testmanager

Get test iteration baseline dataset

Syntax

baseline = getBaselineRun(resultObj)

Description

baseline = getBaselineRun(resultObj) gets the baseline dataset used in a test iteration, which belongs to the test iteration results object. The baseline dataset is saved with the test iteration result only if the Save baseline data in test result check box is selected in the parent test case under the Baseline Criteria section.

Input Arguments

expand all

Test iteration results object to get baseline dataset from, specified as a sltest.testmanager.TestIterationResult object.

Output Arguments

expand all

Test iteration baseline dataset, returned as a Simulink.sdi.Run object. If the Save baseline data in test result check box is not selected in the parent test case, then the function returns an empty array.

Version History

Introduced in R2016a