remove
类: sltest.testmanager.TestInput
命名空间: sltest.testmanager
删除测试输入
语法
remove
说明
remove
从测试用例中删除测试输入。调用此函数后,测试输入对象为空。
输入参数
input
— 测试输入
sltest.testmanager.TestInput
对象
您想要删除的测试输入,指定为 sltest.testmanager.TestInput
对象。
示例
删除测试输入数据
删除 Excel 测试输入表
加载示例模型、创建新测试文件并获取套件和案用用例
open_system('slexAutotransRootInportsExample'); tf = sltest.testmanager.TestFile('input_test_file.mldatx'); ts = getTestSuites(tf); tc = getTestCases(ts);
将模型添加为在测系统
setProperty(tc,'Model','slexAutotransRootInportsExample');
将 Excel 数据添加到输入部分
excelfile = 'sltestExampleInputs.xlsx';
input = addInput(tc,excelfile);
按模块名称映射第一个输入信号
map(input(1),0);
删除第二个输入
remove(input(2));
版本历史记录
在 R2015b 中推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 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)