getVerificationStatus
类: slreq.Reference
命名空间: slreq
查询引用需求验证状态摘要
语法
status = getVerificationStatus(ref)
status = getVerificationStatus(ref, 'self')
说明
返回引用需求 status
= getVerificationStatus(ref
)ref
及其所有子引用的验证状态摘要。
仅返回引用需求 status
= getVerificationStatus(ref
, 'self')ref
的验证状态摘要。
输入参数
输出参量
示例
获取参考需求的验证状态摘要
% Get the verification status summary of the referenced requirement ref % and all its child references refVerifStatus = getVerificationStatus(ref) refVerifStatus = struct with fields: total: 70 passed: 45 failed: 7 unexecuted: 10 justified: 1 none: 7 % Get the verification status summary of only the referenced requirement myRef myRefVerifStatus = getVerificationStatus(myRef, 'self') myRefVerifStatus = struct with fields: passed: 1 failed: 0 unexecuted: 0 justified: 0 none: 0
提示
要获取需求集的验证状态,请将
slreq.ReqSet
对象作为输入传递给getVerificationStatus
函数。要获取需求的验证状态,请将
slreq.Requirement
对象作为输入传递给getVerificationStatus
函数。
版本历史记录
在 R2018b 中推出