getVerificationStatus
类: slreq.Requirement
命名空间: slreq
查询需求验证状态摘要
语法
status = getVerificationStatus(req)
status = getVerificationStatus(req, 'self')
说明
返回需求 status
= getVerificationStatus(req
)req
及其所有子需求的验证状态摘要。
仅返回需求 status
= getVerificationStatus(req
, 'self')req
的验证状态摘要。
输入参数
输出参量
示例
获取需求验证状态摘要
% 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
提示
要获取需求集的验证状态,请将
slreq.ReqSet
对象作为输入传递给getVerificationStatus
函数。要获取引用需求的验证状态,请将
slreq.Reference
对象作为输入传递给getVerificationStatus
方法。
版本历史记录
在 R2018b 中推出