sltest.testmanager.ResultSet 类
命名空间: sltest.testmanager
访问结果集数据
描述
创建对象
函数 sltest.testmanager.run 创建一个 sltest.testmanager.ResultSet 对象。
属性
结果集的名称,以字符向量形式返回。要更改结果集的名称,请使用 sltest.testmanager.getResultSets 并设置结果集对象的 Name 属性。
您可以使用 sltest.testmanager.setpref 设置结果集名称的预设项。当您在相同及未来的 MATLAB 会话中运行测试时,指定的名称适用于所有结果集。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集的描述,以字符向量形式返回。要添加结果集的描述,请使用 sltest.testmanager.getResultSets,然后设置结果集 Description 属性。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
覆盖率分析结果,以所有仿真中聚合的 cvdata 对象的行向量形式返回。有关 cvdata 对象的信息,请参阅 cvdata (Simulink Coverage)。
属性:
SetAccess | private |
GetAccess | public |
Dependent | true |
NonCopyable | true |
测试运行的时间长度(以秒为单位),以持续时间形式返回。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
运行测试的版本,以字符向量形式返回。
属性:
SetAccess | private |
GetAccess | public |
结果集中被禁用的测试用例的数量。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集中未完成测试的数量。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集中包含的失败测试的数量。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集中包含的通过的测试的数量。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集对象的直接子项的测试用例结果的数量。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集对象的直接子项测试套件结果的数量。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集对象的直接子项的测试文件结果的数量。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
结果集中的测试总数。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
测试结果,以 Passed 或 Failed 形式返回。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
测试开始运行的时间,以日期时间形式返回。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
测试完成的时间,以日期时间形式返回。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
与结果集一起存储的自定义数据,指定为任何类型的数据。使用此字段添加有关结果的自定义信息,例如用于获取结果的设置。
属性:
SetAccess | public |
GetAccess | public |
Dependent | true |
NonCopyable | true |
方法
getTestCaseResults | 获取测试用例结果对象 |
getTestSuiteResults | 获取测试套件结果对象 |
getTestFileResults | 获取测试文件结果对象 |
getCoverageResults | 获取覆盖率结果 |
remove | 移除结果集 |
clearSimulationData | 删除结果集对象中指定的仿真测试结果 |
示例
获取当前测试管理器中的所有结果集。
allresultsets = sltest.testmanager.getResultSets
使用 sltest.testmanager.run 运行测试文件获取结果。
result = sltest.testmanager.run; testCaseResultArray = result.getTestCaseResults; testSuiteResultArray = result.getTestSuiteResults;
版本历史记录
在 R2015a 中推出
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)