remove

Class: sltest.testmanager.BaselineCriteria
Package: sltest.testmanager

Remove baseline criteria

Syntax

remove(bc)

Description

remove(bc) removes the baseline criteria from a test case. The baseline criteria object is empty after a call to this function.

Input Arguments

expand all

Baseline criteria that you want to remove from a test case, specified as a sltest.testmanager.BaselineCriteria object.

Examples

expand all

% 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');
remove(tsDel);

% Assign the system under test to the test case
setProperty(tc,'Model','sldemo_absbrake');

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

% Remove baseline criteria;
remove(baseline);
Introduced in R2015b