slreq.verification.services.TAP 类
命名空间: slreq.verification.services
超类:
描述
slreq.verification.services.TAP
实例提供了用于解释 TAP(测试任何协议)结果文件以进行验证的实用程序。
创建对象
GetResultFcn
的自定义逻辑中使用的服务对象,用于编写结果获取逻辑的脚本。
将结果获取逻辑定向到 TAP 文件。tapService
= slreq.verification.services.TAP()
输出参量
方法
输出为 result
,它是 tapService
对象的一个实例。对于 resultFile
和 testID
,GetResultFcn
函数返回 testID
的结果:
result = tapService.getResult(testID, resultFile);
GetResultFcn
使用 resultFile
中的测试点为 testID
获取 result
,使用方法如下:
result = tapService.getAllResults(resultFile);
示例
版本历史记录
在 R2020a 中推出