Main Content

本页采用了机器翻译。点击此处可查看英文原文。

getVerificationStatus

类: slreq.Requirement
命名空间: slreq

查询需求验证状态摘要

语法

status = getVerificationStatus(req)
status = getVerificationStatus(req, 'self')

说明

status = getVerificationStatus(req) 返回需求 req 及其所有子需求的验证状态摘要。

status = getVerificationStatus(req, 'self') 仅返回需求 req 的验证状态摘要。

输入参数

全部展开

需求实例,指定为 slreq.Requirement 对象。

输出参量

全部展开

需求及其子需求的验证状态,以包含这些字段的 MATLAB® 结构体返回。

具有验证链接的需求总数(包括子需求),以 double 形式返回。

通过相关测试的需求总数(包括子需求),以 double 形式返回。

未通过相关测试的需求总数(包括子需求),以 double 形式返回。

未执行相关测试的需求总数(包括子需求),以 double 形式返回。

需求集中需要验证的需求总数(包括子需求),以 double 形式返回。

不包含验证对象链接的需求总数(包括子需求),以 double 形式返回。

示例

获取需求验证状态摘要

% Get the verification status summary of the requirement req 
% and all its child requirements
reqVerifStatus = getVerificationStatus(req)

reqVerifStatus = 

  struct with fields:

          total: 34
         passed: 14
         failed: 15
     unexecuted: 4
      justified: 1
           none: 0


% Get the verification status summary of only the requirement myReq
myReqVerifStatus = getVerificationStatus(myReq, 'self')

myReqVerifStatus = 

  struct with fields:

        passed: 0
        failed: 1
    unexecuted: 0
     justified: 0
          none: 0

提示

版本历史记录

在 R2018b 中推出