Main Content

remove

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

Remove parameter override

Syntax

remove(po)

Description

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

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.

sldemo_absbrake

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);

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);

Clear the Test Manager.

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

Version History

Introduced in R2015b