Main Content

remove

Class: sltest.testmanager.ParameterOverride
Namespace: sltest.testmanager

Remove parameter override

Description

remove(po) removes the parameter override from the parameter set. The parameter override object is empty after a call to this function.

example

Input Arguments

expand all

Parameter override that you want to remove from a parameter set, specified as a sltest.testmanager.ParameterOverride object.

Examples

expand all

Open the model for this example.

openExample("sldemo_absbrake")

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

tf = sltest.testmanager.TestFile("API Test File");
ts = sltest.testmanager.TestSuite(tf,"API Test Suite");
tc = sltest.testmanager.TestCase(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);

Test a new model parameter by overriding it in the test case parameter set.

ps = addParameterSet(tc,Name="API Parameter Set");
po = addParameterOverride(ps,m=55);

Remove parameter override from the parameter set.

remove(po);

Version History

Introduced in R2015b