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 Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)