slreq.getReportOptions
Get default requirements report generation options
Description
returns the default options for requirements reports.myReportOpts
= slreq.getReportOptions
Examples
Open the ShortestPath
project.
proj = openProject("ShortestPath");
Get the default report generation options.
myReportOpts = slreq.getReportOptions;
Load the shortest_path_func_reqs
requirement set.
myReqSet = slreq.load("shortest_path_func_reqs");
Run the tests for the requirement set.
status = runTests(myReqSet);
Specify the report path. Exclude the table of contents from the report.
myReportOpts.reportPath = fullfile(proj.RootFolder, ... "FunctionalRequirementsReport.html"); myReportOpts.includes.toc = false;
Generate the requirements report.
myReportPath = slreq.generateReport(myReqSet,myReportOpts);
Starting report generation... 0%****************************************************100% Requirements Toolbox report generated: C:\Users\ahoward\OneDrive - MathWorks\Documents\MATLAB\ExampleManager\ahoward.examples\slrequirements-ex92550242\ShortestPath\FunctionalRequirementsReport.html
Output Arguments
Report generation options, returned as a structure that has these fields:
Report file name and path, returned as a character vector.
Option to automatically open the report, returned as a logical
1
(true) or 0
(false).
Report title, returned as a character vector.
Report authors, returned as a character vector.
Content included in the report, returned as a structure that has these fields:
Whether report includes the table of contents,
returned as a logical 1
(true) or
0
(false).
Whether report includes the report generation
date, returned as a logical 1
(true) or 0
(false).
Whether report includes the requirement set
revision number, returned as a logical
1
(true) or
0
(false).
Whether report includes requirement properties,
returned as a logical 1
(true) or
0
(false).
Whether report includes links, returned as a
logical 1
(true) or
0
(false).
Whether report includes the requirement change
information, returned as a logical
1
(true) or
0
(false).
Link grouping used by report, returned as
'Artifact'
or
'LinkType'
.
Whether report includes requirement keywords,
returned as a logical 1
(true) or
0
(false).
Whether report includes requirement comments,
returned as a logical 1
(true) or
0
(false).
Whether report includes the implementation status,
returned as a logical 1
(true) or
0
(false).
Whether report includes the verification status,
returned as a logical 1
(true) or
0
(false).
Whether report includes empty requirement
properties, returned as a logical
0
(false) or
1
(true).
Whether report includes the rationale, returned as
a logical 1
(true) or
0
(false).
Whether report includes custom attributes,
returned as a logical 1
(true) or
0
(false).
Version History
Introduced in R2018a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)