Main Content

remove

Class: sltest.testmanager.ParameterOverride
Package: 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
openExample('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 parameter set
remove(po);
Introduced in R2015b