Main Content

remove

Class: sltest.testmanager.BaselineCriteria
Namespace: 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

Open the model for this example.

sldemo_absbrake

Create the test file, test suite, and test case structure.

tf = sltest.testmanager.TestFile('API_Test_File.mldatx');
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 the baseline criteria.

remove(baseline)

Clear the Test Manager.

sltest.testmanager.clear
sltest.testmanager.clearResults
sltest.testmanager.close

Version History

Introduced in R2015b