Main Content

remove

Class: sltest.testmanager.EquivalenceCriteria
Namespace: sltest.testmanager

Remove equivalence criteria

Description

remove(eq) removes the equivalence criteria from a test case. The equivalence criteria object is empty after a call to this function.

example

Input Arguments

expand all

Equivalence criteria that you want to remove from a test case, specified as a sltest.testmanager.EquivalenceCriteria object.

Examples

expand all

Open the model for this example.

openExample("sldemo_absbrake")

Create the test file, test suite, and test case structure. Remove the default test suite.

tf = sltest.testmanager.TestFile("API Test File");
ts = createTestSuite(tf,"API TestSuite");
tc = createTestCase(ts,"equivalence","Equivalence Test Case");

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

Add a parameter override to Simulation 1 and 2

ps1 = addParameterSet(tc,Name="Parameter Set 1",SimulationIndex=1);
po1 = addParameterOverride(ps1,Rr=1.20);

ps2 = addParameterSet(tc,Name="Parameter Set 2",SimulationIndex=2);
po2 = addParameterOverride(ps2,Rr=1.24);

Capture the equivalence criteria.

eq = captureEquivalenceCriteria(tc);

Set the equivalence criteria tolerance for one signal.

sc = getSignalCriteria(eq);
sc(1).AbsTol=2.2;

Remove the equivalence criteria.

remove(eq)

Version History

Introduced in R2015b