non zero exit code when test fails

349 views
Skip to first unread message

Sahaswaranamam Subramanian

unread,
Feb 5, 2016, 12:39:24 PM2/5/16
to codename-taurus
is it possible to return non zero exit code from bzt when test fails where test failure is determined by pass\fail criteria?

Andrey Pokhilko

unread,
Feb 5, 2016, 12:41:43 PM2/5/16
to codenam...@googlegroups.com
Hi,

It is exactly what should happen, it should give you exit code 3 if criteria has failed.

Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
On 02/05/2016 09:39 AM, Sahaswaranamam Subramanian wrote:
is it possible to return non zero exit code from bzt when test fails where test failure is determined by pass\fail criteria?
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/5d3a5dda-4190-4619-a5e7-0f6ff0af0ede%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pragya.s...@gmail.com

unread,
Feb 10, 2016, 11:40:17 AM2/10/16
to codename-taurus

Somehow, it is always returning with exit code 0 for me, even if tests are failing.
This is what I have in my criteria:
servivces:
- module: passfail
criterias:
- failures>0%, stop as failed

Any way to return non zero code?

Andrey Pokhilko

unread,
Feb 10, 2016, 11:44:20 AM2/10/16
to codenam...@googlegroups.com
"servivces" has a misprint in it. Can't it be a problem?


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.

Pragya

unread,
Feb 10, 2016, 11:48:25 AM2/10/16
to codename-taurus
I apologize,that probably just happened while copying. Even after correcting it, I still have same issue.


On Friday, February 5, 2016 at 11:39:24 AM UTC-6, Sahaswaranamam Subramanian wrote:

Andrey Pokhilko

unread,
Feb 10, 2016, 11:49:04 AM2/10/16
to codenam...@googlegroups.com
Can you post here bzt.log from one of your executions?


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.

Andrey Pokhilko

unread,
Feb 10, 2016, 12:39:08 PM2/10/16
to codenam...@googlegroups.com
From what you've sent, I don't see failure criteria to be triggered. So maybe you have specified the criteria wrong.

Try to change your criteria to something that will fail for sure, like: "avg-rt>1 for 1s". Then you'll see that it is being triggered and stops test.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
On 02/10/2016 07:48 PM, Pragya wrote:
--

Andrey Pokhilko

unread,
Feb 10, 2016, 12:49:57 PM2/10/16
to codenam...@googlegroups.com
Also, When I'm trying with attached file, it works for me, the criteria is triggered
20:48:58 ERROR: Shutdown: Failed: failures>0% for 1 sec
20:48:58 WARNING: Done performing with code: 3



Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
1.yml

Pragya

unread,
Feb 10, 2016, 2:47:50 PM2/10/16
to codename-taurus
Thanks for your help Andrey.. I think my failure criteria was wrong. It seems to be working now.
Reply all
Reply to author
Forward
0 new messages