remove
Class: sltest.testmanager.TestInput
Namespace: sltest.testmanager
Remove test input
Syntax
remove
Description
remove
removes the test input from a test
case. The test input object is empty after a call to this function.
Input Arguments
input
— Test input
sltest.testmanager.TestInput
object
The test input that you want to remove, specified as a sltest.testmanager.TestInput
object.
Examples
Remove Test Input Data
Remove an Excel test input sheet
Load Example Model, Create New Test File, and Get Suites and Cases
open_system('slexAutotransRootInportsExample'); tf = sltest.testmanager.TestFile('input_test_file.mldatx'); ts = getTestSuites(tf); tc = getTestCases(ts);
Add the Model as the System Under Test
setProperty(tc,'Model','slexAutotransRootInportsExample');
Add Excel Data to Inputs Section
excelfile = 'sltestExampleInputs.xlsx';
input = addInput(tc,excelfile);
Map the First Input Signal By Block Name
map(input(1),0);
Remove the Second Input
remove(input(2));
Version History
Introduced in R2015b
See Also
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)