Main Content

getVerificationStatus

Class: slreq.Requirement
Namespace: slreq

Query requirement verification status summary

Syntax

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

Description

status = getVerificationStatus(req) returns the verification status summary for the requirement req and all its child requirements.

status = getVerificationStatus(req, 'self') returns the verification status summary for just the requirement req.

Input Arguments

expand all

Requirement instance, specified as an slreq.Requirement object.

Output Arguments

expand all

The verification status for the requirement and its child requirements, returned as a MATLAB® structure containing these fields.

The total number of requirements (including child requirements) with Verify links, returned as a double.

The total number of requirements (including child requirements) that passed the tests associated with them, returned as a double.

The total number of requirements (including child requirements) that failed the tests associated with them, returned as a double.

The total number of requirements (including child requirements) with unexecuted associated tests, returned as a double.

The total number of requirements (including child requirements) that are justified for verification in the requirement set, returned as a double.

The total number of requirements (including child requirements) without links to verification objects, returned as a double.

Examples

Get Verification Status Summary of a Requirement

% 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

Tips

Version History

Introduced in R2018b