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.EquivalenceCriteria class

Package: sltest.testmanager
Superclasses:

Add or modify equivalence criteria

Description

Instances of sltest.testmanager.EquivalenceCriteria is a set of signals in a test case that determines the pass-fail criteria in an equivalence test case.

Construction

obj = sltest.testmanager.TestCase.captureEquivalenceCriteria creates a sltest.testmanager.EquivalenceCriteria object for a test case object.

Properties

expand all

Indicates if the equivalence criteria is enabled, 0 if it is not enabled, and 1 if it is enabled.

Methods

getSignalCriteriaGet signal criteria
removeRemove equivalence criteria

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,'equivalence','Equivalence 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
% for Simulation 1 and Simulation 2
setProperty(tc,'Model','sldemo_absbrake','SimulationIndex',1);
setProperty(tc,'Model','sldemo_absbrake','SimulationIndex',2);

% Capture equivalence criteria
eq = captureEquivalenceCriteria(tc);

Introduced in R2015b