Contenuto principale

slreq.validateReqIF

Validate ReqIF files

Since R2022b

Description

info = slreq.validateReqIF(reqifFile) checks the specified ReqIF™ file against the ReqIF specification and returns information about elements that do not meet the specification. For more information about the ReqIF specification, see About the Requirements Interchange Format Specification Version 1.2 on the Object Management Group website.

example

Examples

collapse all

This example shows how to validate and import ReqIF™ files.

Validate the mySpec.reqif file.

file = "mySpec.reqif";
info = slreq.validateReqIF(file)
info = 
    '***      SlreqReqIfValidator      ***
     ----------  Error Summary  ----------
     SlreqReqIfValidator found no error in validation.
     ---------- Warning Summary ----------
     SlreqReqIfValidator found no warning in validation.
     '

Import the mySpec.reqif file.

[numRequirements,reqSetFilePath,myReqSet] = slreq.import(file);

Input Arguments

collapse all

ReqIF file path, specified as a string scalar or character vector that contains a file name, a relative path to a file, or a full file path.

Example: "myReqIF.reqif"

Example: "files/myReqIF.reqif"

Example: "C:/work/files/myReqIF.reqif"

Output Arguments

collapse all

Summary of errors and warnings, returned as a character vector.

Version History

Introduced in R2022b