Zap Automation Framework - Using multiple templates

155 views
Skip to first unread message

Anthony Robinson

unread,
Apr 21, 2022, 5:56:01 AM4/21/22
to OWASP ZAP User Group
Hi,

I was wondering when using the automation framework is it possible to produce the report with multiple templates. I would like to create the xml and html if possible. If I can how do I declare this in my YAML?

Thanks

Anthony Robinson

unread,
Apr 21, 2022, 6:08:39 AM4/21/22
to OWASP ZAP User Group
I've answered my own question. The solution is to declare multiple report tasks, like so:

  - type: report
    parameters:
      template: traditional-html-plus
      reportDir: C:\
      reportFile: OWASP-ZAP-Report
      reportTitle:
      reportDescription:
      displayReport:
    risks:
      - high
      - medium
      - low
      - info

    confidences:
      - high
      - medium
      - low
      - falsepositive

    sections:
  - type: report
    parameters:
      template: traditional-xml
      reportDir: C:\
      reportFile: OWASP-ZAP-Report
      reportTitle:
      reportDescription:
      displayReport:
    risks:
      - high
      - medium
      - low
      - info

    confidences:
      - high
      - medium
      - low
      - falsepositive

    sections:

psiinon

unread,
Apr 21, 2022, 6:11:50 AM4/21/22
to zaprox...@googlegroups.com
That's the right solution 😀

--
You received this message because you are subscribed to the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zaproxy-users/865d15a8-b740-4570-8175-a24a33492902n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages