Hi all,

I'm developing some performance tests for a product in my company.
Until now I have been using duration assertions to do this, where I want the 
test to fail when a specific request takes more than a certain amount of time.
This was achieved by putting the duration assertion directly below the request 
I need.

Now the requirements have changed, where I want a test to fail only if the 
average of time is more than the assertion.
In my case I use 20 users, so the test will run 20 times, and I would like to 
fail/pass the test only after the 20 users have finished and I can check the 
average time for that specific request.

Manually, I can do that looking at a Summary or Aggregate report, but I have 
all tests running in a pipeline and I would like to have JMeter fail/pass the 
test using this criteria on its own.
I looked at BeanShell and Java scripting, but I can't seem to access the 
results in the Summary Report to achieve my goal, even after looking at the 
JMeter API.
I'm not sure if I'm missing something or if this simply isn't possible.

Is there something I'm missing?
Or is there a different solution that I'm not getting at?

I appreciate any help in advance!

Kind regards,

Rita Sousa
Senior Quality Manager

T: +351214460090<tel:+351214460090>  M: +351916333973<tel:+351916333973>

My working hours: 8:00 am to 2:00 pm - Lisbon time

[cid:[email protected]]

UNIT4 Portugal Unipessoal LDA
Rua Dr. António Loureiro Borges, 9 - 11º, 1495-131, Algés - Lisbon, Portugal

This message and any attachment(s) are intended only for the use of the named 
recipient and may contain information that is privileged, confidential or 
otherwise exempt from disclosure under applicable law. If you are not the 
intended recipient, please notify the sender by return e-mail and delete this 
message from your system. Do not disclose the contents of this document to any 
other persons. Violation of this notice may be unlawful. Please note that 
internet communications are not secure and e-mails are susceptible to change. 
Thank you for your cooperation.


Reply via email to