Automation Framework: How to raise error so framework fails

47 views
Skip to first unread message

Michael Endrizzi

unread,
Feb 26, 2024, 2:44:40 AM2/26/24
to ZAP User Group

Is there a way to throw an error and get the framework to fail?


err.jpg
err.jpg

Michael Endrizzi

unread,
Feb 26, 2024, 3:24:52 AM2/26/24
to zaprox...@googlegroups.com
and set to fail on error

image.png

On Mon, Feb 26, 2024 at 8:44 AM Michael Endrizzi <michael....@gmail.com> wrote:

Is there a way to throw an error and get the framework to fail?


err.jpg

--
You received this message because you are subscribed to the Google Groups "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/99e90dfa-f87b-48cc-b206-d74142a382c7n%40googlegroups.com.


--
 
Michael Endrizzi
 
"You can't lower the mountain, you can only elevate yourself"

thc...@gmail.com

unread,
Feb 26, 2024, 4:31:56 AM2/26/24
to zaprox...@googlegroups.com
Hi,

Not currently, but it should behave like that.

Best regards.

thc...@gmail.com

unread,
Feb 26, 2024, 10:08:50 AM2/26/24
to zaprox...@googlegroups.com
For the record, latest weekly release should behave that way, error in
script will lead to error in the Automation Framework.

Best regards.

Michael Endrizzi

unread,
Feb 28, 2024, 4:41:22 AM2/28/24
to ZAP User Group
hmmm...ok will try it again...

Michael Endrizzi

unread,
Mar 6, 2024, 5:37:23 AM3/6/24
to ZAP User Group
Confirmed...It is fixed in weekly  ZAP_WEEKLY_D-2024-03-04 but NOT 2.14.0

Thanks again,
dreez

Michael Endrizzi

unread,
Mar 12, 2024, 10:19:27 AM3/12/24
to zaprox...@googlegroups.com
Just FYI, be careful how you raise and catch errors in your pipelined docker containers. Inside the pipeline error code is 0, outside it is 1.

image.png

--
You received this message because you are subscribed to the Google Groups "ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages