Main Content

getVerificationStatus

Class: slreq.ReqSet
Package: slreq

Query requirement set verification status summary

Syntax

status = getVerificationStatus(rs)

Description

status = getVerificationStatus(rs) returns the verification status summary of all requirements in the requirement set rs.

Input Arguments

expand all

Requirement set, specified as an slreq.ReqSet object.

Output Arguments

expand all

The verification status summary for the requirement set, returned as a MATLAB® structure containing these fields.

The total number of requirements in the requirement set with Verify links, returned as a double.

The total number of requirements in the requirement set that passed the tests associated with them, returned as a double.

The total number of requirements in the requirement set that failed the tests associated with them, returned as a double.

The total number of requirements in the requirement set with unexecuted associated tests, returned as a double.

The total number of requirements justified for verification in the requirement set, returned as a double.

The total number of requirements without links to verification objects in the requirement set, returned as a double.

Examples

Get Verification Status Summary of a Requirement Set

% Load a requirements set file
rs = slreq.load('C:\MATLAB\My_Requirements_Set_1.slreqx');

% Get the verification status summary of the requirements in rs
verifStatus = getVerificationStatus(rs)

verifStatus = 

  struct with fields:

          total: 25
         passed: 10
         failed: 5
     unexecuted: 4
      justified: 1
           none: 5

Introduced in R2018b