remove
Class: sltest.testmanager.TestInput
Package: 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('sltestExcelExample'); 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','sltestExcelExample');
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
Abrir ejemplo
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
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)