Pass/Fail Thresholds
Pass/fail thresholds turn a load test into a checked SLO. You set limits once on a test, and every run is graded automatically: a green PASS or a red FAIL, with each limit compared against the run's real numbers. Thresholds work the same way for cloud, JMeter and k6 tests.
Set your thresholds
On the new-test page, open the Pass/fail thresholds section and fill in any of:
- Max P95 response time (ms): the run fails if the 95th-percentile response time is above this.
- Max P99 response time (ms): same, for the 99th percentile.
- Max error rate (%): the run fails if the overall error rate is above this.
- Min throughput (req/s): the run fails if throughput is below this.
Leave a field empty to skip that check. Tick Enable pass/fail thresholds to turn the verdict on. Thresholds are saved per test and per team, so you set them once and they apply to every future run.
Read the verdict
Open any result for a test that has thresholds enabled. The overview shows a PASS or FAIL badge with a line per check: the actual value, the target, and whether it passed. The badge is evaluated against the same overall numbers shown on the results page.
Watch trends across runs
The Trend tab plots P95 response time, error rate and throughput across the recent runs of the test, with your thresholds drawn in as lines and each run coloured green (pass) or red (fail). It builds itself from your run history, so a creeping regression is easy to spot.
Gate your CI/CD pipeline
The verdict is also available to automation, so a load test can block a bad deploy:
- GitHub Action: the LoadFocus load-test gate action runs a test, waits for it to finish, reads the verdict, and exits non-zero when a threshold is breached (which fails the workflow step). See the action's README in the
integrations/github-actionfolder. - Verdict API:
GET /api/v1/{loadtests|k6tests|jmetertests}/verdict?testrunname=<name>&testrunid=<id>(with yourloadfocus-authAPI key) returns{ verdict, checks, metrics, ... }so any pipeline can gate on the result. Call it on a finished run.
Get alerted if a run doesn't finish
If a run hangs and never finishes, LoadFocus emails the team owner automatically, so a stuck run never goes unnoticed.