Main Content

remove

Class: sltest.testmanager.ParameterSet
Namespace: sltest.testmanager

Remove parameter set

Syntax

remove(ps)

Description

remove(ps) removes the parameter set from a test case. The parameter set object is empty after a call to this function.

Input Arguments

expand all

Parameter set that you want to remove from a test case, specified as a sltest.testmanager.ParameterSet 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 set from test case
remove(ps);

Version History

Introduced in R2015b