remove
Class: sltest.testmanager.EquivalenceCriteria
Namespace: sltest.testmanager
Remove equivalence criteria
Syntax
remove(eq)
Description
remove(
removes
the equivalence criteria from a test case. The equivalence criteria
object is empty after a call to this function.eq
)
Input Arguments
eq
— Equivalence criteria
sltest.testmanager.EquivalenceCriteria
object
Equivalence criteria that you want to remove from a test case,
specified as a sltest.testmanager.EquivalenceCriteria
object.
Examples
Remove Equivalence Criteria
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,'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);
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)
Clear the Test Manager.
sltest.testmanager.clear sltest.testmanager.clearResults sltest.testmanager.close
Version History
Introduced in R2015b
See Also
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)