주요 콘텐츠

remove

Class: sltest.testmanager.BaselineCriteria
Namespace: sltest.testmanager

Remove baseline criteria

Description

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

example

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.

openExample("sldemo_absbrake")

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

tf = sltest.testmanager.TestFile("API_Test_File.mldatx");
ts = createTestSuite(tf,"API TestSuite");
tc = createTestCase(ts,"baseline","Baseline API Test Case");

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)

Version History

Introduced in R2015b