How to add report creation to a Zest script?

0 views
Skip to first unread message

An Pedus

unread,
Jan 12, 2015, 8:50:15 AM1/12/15
to mozill...@googlegroups.com
Hi,
 
I'm creating stand alone script that I will run in zap to get the alerts visible.
I would like to catch those alerts and create a report at the end of my Zest script.
 
Is there any scipt availble that can show me how to add this?
Can somebody share please?
 
Thanks
An

Simon Bennetts

unread,
Jan 16, 2015, 10:46:18 AM1/16/15
to mozill...@googlegroups.com
Zest cant currently invoke arbitrary ZAP functionality directly - that would make it tool ZAP specific, and we want it to be tool independent.
However it could invoke a non Zest script which would then be able to access the ZAP internals :)
Are either of the 'standard' HTML / XML reports ok for you?
Would you want them saved to a standard location or ??

Cheers,

Simon

An Pedus

unread,
Jan 22, 2015, 4:45:53 AM1/22/15
to mozill...@googlegroups.com

Thanks for your quick reply!

Well, I'm actually looking for something that will create a HTML report after a zest script has run, so that we can add the scripts to our automated build and have the reports available to check what the status is of our application.

Saving this to a certain drive and folder will indeed be OK, the clean up of this is already created in various other scripts of the build and can be added to the project, so yes that's basically what I'm looking for.

I do not see any other way in providing this feedback after an automated test so that's why i'm looking for this information...


Regards,

An


Op vrijdag 16 januari 2015 16:46:18 UTC+1 schreef Simon Bennetts:

Simon Bennetts

unread,
Jan 23, 2015, 6:17:27 AM1/23/15
to mozill...@googlegroups.com
I've added the following ZAP script to the community-scripts repo: https://github.com/zaproxy/community-scripts/blob/master/standalone/Run%20report.js
You can call that from Zest.
Does that help?

Cheers,

Simon

An Pedus

unread,
Feb 26, 2015, 5:39:14 AM2/26/15
to mozill...@googlegroups.com
Hi Simon,

verry helpfull yes, thanks a million!

Op vrijdag 23 januari 2015 12:17:27 UTC+1 schreef Simon Bennetts:
Reply all
Reply to author
Forward
0 new messages