Main Content


Class: sltest.testmanager.TestCase
Namespace: sltest.testmanager

Get baseline criteria


baselines = getBaselineCriteria(tc)


baselines = getBaselineCriteria(tc) gets the baseline criteria sets in a test case and returns them as an array of baseline criteria objects, sltest.testmanager.BaselineCriteria.

Input Arguments

expand all

Baseline test case that you want to get baseline criteria from, specified as a sltest.testmanager.TestCase object.

Output Arguments

expand all

Baseline criteria that are in the baseline test case, returned as an array of sltest.testmanager.BaselineCriteria objects.


expand all

% Open the model for this example

% Create the test file, test suite, and test case structure
tf = sltest.testmanager.TestFile('API Test File');
ts = createTestSuite(tf,'API Test Suite');
tc = createTestCase(ts,'baseline','Baseline API Test Case');

% Remove the default test suite
tsDel = getTestSuiteByName(tf,'New Test Suite 1');

% Assign the system under test to the test case

% Capture the baseline criteria
baseline = captureBaselineCriteria(tc,'baseline_API.mat',true);

% Set the baseline criteria tolerance for one signal
sc = getSignalCriteria(baseline);
sc(1).AbsTol = 9;

% Get baseline criteria
baselineOut = getBaselineCriteria(tc);

Version History

Introduced in R2015b