deleteIterations
Class: sltest.testmanager.TestCase
Namespace: sltest.testmanager
Delete test iterations that belong to test case
Syntax
deleteIterations(tc,iter)
Input Arguments
tc
— Test case to delete iteration from
sltest.testmanager.TestCase
object
Test case that you want to delete the iteration from, specified
as a sltest.testmanager.TestCase
object.
iter
— Test iteration to delete
sltest.testmanager.TestIteration
object array
Test iterations that you want to delete from the test case,
specified as an array of sltest.testmanager.TestIteration
objects.
Examples
Delete Test Iteration from Test Case
Load the model for this example.
load_system('sldemo_autotrans')
Create the test file, test suite, and test case structure.
tf = sltest.testmanager.TestFile('Iterations Test File'); ts = getTestSuites(tf); tc = createTestCase(ts,'simulation','Simulation Iterations');
Specify the model as the system under test.
setProperty(tc,'Model','sldemo_autotrans');
Set up a table iteration and create an iteration object. Then set the iteration settings and add the iteration to the test case.
testItr1 = sltestiteration; setTestParam(testItr1,'SignalBuilderGroup','Passing Maneuver'); addIteration(tc,testItr1);
Set up another table iteration, iteration object, iteration settings, and add the iteration to the test case.
testItr2 = sltestiteration; setTestParam(testItr2,'SignalBuilderGroup','Coasting'); addIteration(tc,testItr2);
Delete the first iteration.
deleteIterations(tc,testItr1);
Clear the Test Manager.
sltest.testmanager.clear sltest.testmanager.clearResults sltest.testmanager.close
Version History
Introduced in R2016a
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)