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

Add or modify equivalence criteria


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.


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


expand all

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


getSignalCriteriaGet signal criteria
removeRemove equivalence criteria


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

% Assign the system under test to the test case
% for Simulation 1 and Simulation 2

% Capture equivalence criteria
eq = captureEquivalenceCriteria(tc);

Introduced in R2015b