remove
Class: sltest.testmanager.BaselineCriteria
Package: sltest.testmanager
Remove baseline criteria
Syntax
remove(bc)
Description
remove(
removes
the baseline criteria from a test case. The baseline criteria object
is empty after a call to this function.bc
)
Input Arguments
bc
— Baseline criteria
sltest.testmanager.BaselineCriteria
object
Baseline criteria that you want to remove from a test case,
specified as a sltest.testmanager.BaselineCriteria
object.
Examples
Remove Baseline Criteria
Open the model for this example.
sldemo_absbrake
Create the test file, test suite, and test case structure.
tf = sltest.testmanager.TestFile('API_Test_File.mldatx'); ts = createTestSuite(tf,'API Test Suite'); tc = createTestCase(ts,'baseline','Baseline API 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.
setProperty(tc,'Model','sldemo_absbrake');
Capture the baseline criteria.
baseline = captureBaselineCriteria(tc,'baseline_API.mat',true);
Remove the baseline criteria.
remove(baseline)
Clear the Test Manager.
sltest.testmanager.clear sltest.testmanager.clearResults sltest.testmanager.close
Version History
Introduced in R2015b
See Also
Open Example
You have a modified version of this example. Do you want to open this example with your edits?
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)