remove
类: sltest.testmanager.ResultSet
命名空间: sltest.testmanager
移除结果集
语法
remove(result)
说明
remove(
删除 result
)result
,即 sltest.testmanager.ResultSet
对象。如果测试管理器可见,则相应的结果将从结果和工件窗格中删除。
输入参数
result
— 结果集
sltest.testmanager.ResultSet
对象
从结果集中获取测试文件结果,指定为 sltest.testmanager.ResultSet
对象。
示例
删除测试结果
此示例显示如何运行测试并删除结果。
加载模型
load_system('sltestF14ParameterSweep')
创建测试文件
tf = sltest.testmanager.TestFile('f14ParameterSweepTest.mldatx');
运行测试
result = run(tf)
result = ResultSet with properties: Outcome: Failed NumPassed: 22 NumFailed: 3 NumDisabled: 0 NumIncomplete: 0 NumTotal: 25 NumTestCaseResults: 0 NumTestSuiteResults: 0 NumTestFileResults: 1 StartTime: 20-Apr-2024 13:01:19 StopTime: 20-Apr-2024 13:01:35 Duration: 15.792 sec Description: [] Name: 'Results: 2024-Apr-20 13:01:18' CoverageResults: [] UserData: []
删除结果
remove(result)
版本历史记录
在 R2019a 中推出
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)