Results
This module contains step implementations that validates the total response results for all Tasks in a scenario, based on locust statistics (response time and failures).
When fail ratio
When fail ratio is greater than "{fail_ratio:d}"% fail scenario
Set how many percentages of requests that are allowed to fail before the whole scenario will be set as failed.
This step cannot be used in combination with:
Default behavior is not to validate the result for a scenario based on failed requests.
Example:
When fail ratio is greater than "8"% fail scenario
Arguments:
fail_ratio
int - percentage of requests that are allowed to fail
When avg response time
When average response time is greater than "{avg_response_time:d}" milliseconds fail scenario
Set the average response time (milliseconds) that all requests in a scenario must be below for it to pass.
Default behavior is not to validate the result for a scenario based on average response time.
Example:
When average response time is greater than "200" milliseconds fail scenario
Arguments:
avg_response_time
int - allowed average response time in milliseconds
When response time percentile
When response time percentile "{percentile:d}"% is greater than "{response_time:d}" milliseconds fail scenario
Set the response time that a specified percentile of the requests needs to be below for the scenario to pass.
Default behavior is not to validate the result for a scenario based on percetile response times.
Example:
When response time percentile "95"% is greater than "200" milliseconds fail scenario
Arguments:
percentile
int - percentile to validate (1-100)response_time
int - response time in milliseconds