padv.builtin.task.GenerateRequirementsReport Class
Namespace: padv.builtin.task
Superclasses: padv.Task
Task for generating requirements report for each requirement set
Description
This class requires CI/CD Automation for Simulink Check.
The padv.builtin.task.GenerateRequirementsReport
class provides a task that
can generate a requirements report for each requirement set by using Requirements Toolbox™. You can use the report to document your requirements for review. The report can
contain information like links to requirements, requirements change and revision information,
and the Implementation and Verification status summaries.
You can add the task to your process model by using the method addTask
.
After you add the task to your process model, you can run the task from the Process Advisor app or
by using the function runprocess
.
To view the source code for this built-in task, in the MATLAB® Command Window, enter:
open padv.builtin.task.GenerateRequirementsReport
The padv.builtin.task.GenerateRequirementsReport
class is a handle
class.
Note
The built-in task
padv.builtin.task.GenerateSimulinkWebView
might generate duplicate
requirement sets that the web view uses as supporting files. To prevent the built-in task
padv.builtin.task.GenerateRequirementsReport
from running on these
duplicate requirement sets, you can filter the requirement sets that the task iterates over.
For example, suppose that your original requirements sets are inside a folder
01_Requirements
. Inside your process model, you can use the built-in
query padv.builtin.query.FindRequirements
to create a query object that only finds
requirements inside that folder and use that query object as the iteration query for the
GenerateRequirementsReport
task.
findRequirements = padv.builtin.query.FindRequirements(IncludePath="01_Requirements");
pm.addTask(padv.builtin.task.GenerateRequirementsReport(IterationQuery=findRequirements));
Creation
Description
task = padv.builtin.task.GenerateRequirementsReport()
creates a
task for generating a requirements report for each loaded requirement set.
task = padv.builtin.task.GenerateRequirementsReport(
sets certain properties using one or more name-value arguments. For example, to create a
task that only generates a requirements report for requirement sets that include
Name=Value
)"SystemReqs"
in their path, you can specify
padv.builtin.task.GenerateRequirementsReport(IterationQuery=padv.builtin.query.FindRequirements(IncludePathRegex="SystemReqs"))
.
You can use this syntax to set property values for InputQueries
,
Name
, IterationQuery
,
InputDependencyQuery
, Licenses
,
LaunchToolAction
, and LaunchToolText
.
The padv.builtin.task.GenerateRequirementsReport
class also has other properties, but you cannot set
those properties during task creation.
Properties
Methods
Examples
See Also
addTask
| padv.ProcessModel
| Process Advisor | Requirements
Editor (Requirements Toolbox) | runprocess
| slreq.generateReport
(Requirements Toolbox)