reports: Add support for script diagnostics in all Traditional Reports#7377
Draft
kingthorin wants to merge 1 commit into
Draft
reports: Add support for script diagnostics in all Traditional Reports#7377kingthorin wants to merge 1 commit into
kingthorin wants to merge 1 commit into
Conversation
Member
|
New Issues (2)Checkmarx found the following issues in this Pull Request
Use @Checkmarx to interact with Checkmarx PR Assistant. |
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds a new “Script Diagnostics” section to all Traditional report formats (XML, JSON, HTML, PDF, and Markdown) so that recorded script run diagnostics (for example, failed automation runs) are visible in generated reports.
Changes:
- Added Script Diagnostics rendering to Traditional report templates across XML/JSON/HTML/PDF/Markdown.
- Added/updated i18n strings and help documentation describing the new section.
- Added new/updated unit tests and shared assertions to validate Script Diagnostics output across formats.
Reviewed changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| addOns/reports/src/test/java/org/zaproxy/addon/reports/ScriptDiagnosticsReportAssertions.java | Introduces shared JSON/XML assertions for script diagnostics content in traditional reports. |
| addOns/reports/src/test/java/org/zaproxy/addon/reports/ExtensionReportsXmlUnitTest.java | Adds XML/XML+ tests to validate script diagnostics output. |
| addOns/reports/src/test/java/org/zaproxy/addon/reports/ExtensionReportsUnitTest.java | Adds HTML/HTML+ and PDF tests for script diagnostics presence/omission. |
| addOns/reports/src/test/java/org/zaproxy/addon/reports/ExtensionReportsMdUnitTest.java | Adds Markdown tests for script diagnostics presence/omission. |
| addOns/reports/src/test/java/org/zaproxy/addon/reports/ExtensionReportsJsonUnitTest.java | Refactors JSON+ assertions to shared helper and adds Traditional JSON script diagnostics test. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-xml/report.xml | Adds <scriptDiagnostics> element generation when diagnostics exist. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-xml-plus/report.xml | Adds <scriptDiagnostics> element generation when diagnostics exist. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-pdf/template.yaml | Enables scriptdiagnostics as a selectable section for Traditional PDF. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-pdf/report.html | Adds Script Diagnostics section rendering for PDF output (HTML template). |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-pdf/Messages.properties | Adds section label for scriptdiagnostics in PDF template messages. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-md/template.yaml | Enables scriptdiagnostics as a selectable section for Traditional Markdown. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-md/report.md | Adds Script Diagnostics section rendering for Markdown output. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-md/Messages.properties | Adds section label for scriptdiagnostics in Markdown template messages. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-json/report.json | Adds scriptDiagnostics object output when diagnostics exist. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-html/template.yaml | Enables scriptdiagnostics as a selectable section for Traditional HTML. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-html/report.html | Adds Script Diagnostics section rendering for HTML output. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-html/Messages.properties | Adds section label for scriptdiagnostics in HTML template messages. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-html-plus/template.yaml | Enables scriptdiagnostics as a selectable section for Traditional HTML+. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-html-plus/report.html | Adds Script Diagnostics section rendering for HTML+ output. |
| addOns/reports/src/main/zapHomeFiles/reports/traditional-html-plus/Messages.properties | Adds section label for scriptdiagnostics in HTML+ template messages. |
| addOns/reports/src/main/resources/org/zaproxy/addon/reports/resources/Messages.properties | Adds report-level i18n strings for script diagnostics table headers/title. |
| addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/report-traditional-xml.html | Documents Script Diagnostics section for Traditional XML report. |
| addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/report-traditional-xml-plus.html | Documents Script Diagnostics section for Traditional XML+ report. |
| addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/report-traditional-pdf.html | Documents scriptdiagnostics section for Traditional PDF report. |
| addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/report-traditional-markdown.html | Documents scriptdiagnostics section for Traditional Markdown report. |
| addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/report-traditional-json.html | Documents Script Diagnostics object/array for Traditional JSON report. |
| addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/report-traditional-html.html | Documents scriptdiagnostics section for Traditional HTML report. |
| addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/report-traditional-html-plus.html | Documents scriptdiagnostics section for Traditional HTML+ report. |
| addOns/reports/CHANGELOG.md | Updates changelog entry to reflect script diagnostics support across all Traditional reports. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d355b63 to
534edf9
Compare
b9a7883 to
40cc755
Compare
Member
Author
|
Ready |
40cc755 to
ba72a27
Compare
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
ba72a27 to
a021365
Compare
Member
|
This should wait for #7393. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Overview
Added a new section to all Traditional Reports (JSON plus was done in a previous PR) for script diagnostics details.
Related issues
AI Disclosure
Cursor was used in preparation of this change/PR.