This add-on allows you to generate a variety of reports in a flexible and extensible way.
It provides a dialog that can be accessed via menu “Report / Generate Report…” menu item or via the “Generate Report…” toolbar button.
It also supports the Automation Framework.
The Scope tab has the following fields:
The title that will be used in the report.
The filename that will be used for the report. This name can include the following patterns:
{{
date/time pattern }}
Any Java Date/Time pattern, e.g. yyyy-MM-dd
[[site]]
The name of the first site selectedThe name will be automatically updated with the site selected and extension for the report type.
To change the default name used change the ‘Report Name Pattern’
The directory into which the report will be written. This directory will be selected when the dialog is next opened.
The description that will be included in the report.
A list of all of the Contexts currently available. Select one or more to only include alerts and other information from those contexts in the report. You can use the shift or control keys to select and unselect more than one context.
By default all contexts will be included.
A list of all of the Sites currently available. Select one or more to only include alerts and other information from those sites in the report. You can use the shift or control keys to select and unselect more than one site.
By default all sites will be included.
If you select sites that are not in the contexts that you have also selected then no data will be included in the report.
By default the dialog will prevent you from generating a report with no alerts. Select this check box if you do want to generate a report with no alerts.
If selected then ZAP will attempt to open the report using the default program used by your operating system for that report type.
The Template tab has the following fields:
A pulldown containing all of the available templates. The template names include the format that they will be generated in, e.g. HTML, MD, PDF etc.
Templates may optionally define ’themes’ - typically different colours and styles which apply to the same content. If any themes are defined for the selected template then you can select them here.
Templates may optionally define ‘sections’ - parts of the report which can be included or excluded. If the selected template defines sections then a checkbox for each section will be displayed here. By default all checkboxes will be selected. If you unselect any of the sections then they will not be included in the report.
The Filter tab has the following fields:
Include alerts with the selected risks.
Include alerts with the selected confidences.
The Options tab has the following fields:
The pattern that will be used to generate the report name.
The directory from which templates will be loaded. You should not typically need to change unless you are designing new reports, in which case it can be useful to change to point to your local source code reports directory. The “reports” folder in your ZAP home directory is used by default.
Templates | for details of the templates currently available | |
Creating Reports | for details on how to create and edit your own reports | |
Report Generation Automation Framework Support | for more details about the Automation Framework Support | |
Report Generation API | for more details about the Reports API | |
About | for more details of this add-on |