Different amount of fails for check and threshold

Hey, trying to understand why checks amount for response 200 is different from thresholds http_req_failed ?

Does that mean that around 50~60 checks actually had 200 response body but http req still failed ?

Hey @sillymoomoo,

Does that mean that around 50~60 checks actually had 200 response body but http req still failed ?

The checks metric is reporting 0% as the rate of success which means no request passed the condition.

I expect you set one check evaluation for the iteration and your test run did 156 iterations so you got one evaluation per iteration but apparently, your test is generating 210 HTTP requests.

Some suggestions to check:

  • Do you have multiple requests per iteration but you coded the evaluation for only one of them?
  • Is your request hitting redirects for some of the generated requests? You can control the max redirects by setting the redirects param of the request. You can disable it with the value set to 0.
  • Is your test doing requests from other test-life-cycle functions like setup or teardown?

Let me know if it helps.

2 Likes

I guess other HTTP requests simply got stopped from finishing the request and therefor we have no response on how they performed :slight_smile: