This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

sltest.testmanager.ParameterOverride class

Package: sltest.testmanager
Superclasses:

Add or modify parameter override

Description

Instances of sltest.testmanager.ParameterOverride are parameters overrides contained in a parameter set within a test case that can override model parameters.

Construction

obj = sltest.testmanager.ParameterSet.addParameterOverride creates a sltest.testmanager.ParameterOverride object for a parameter set object.

Properties

expand all

Name of the parameter override, specified as a character vector.

Value of the parameter override, specified as a scalar or vector value.

Indicates if the parameter override is enabled, 0 if it is not enabled, and 1 if it is enabled.

The source of the parameter variable, returned as a character vector. For example, the source could be the base workspace.

Methods

removeRemove parameter override

Examples

collapse all

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

% Assign the system under test to the test case
setProperty(tc,'Model','sldemo_absbrake');

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

Introduced in R2015b