Skip to content

Results

formatting...

Module contains step implementations that validates the total response results for all tasks in a scenario, based on locust statistics (response time and failures).

Average response time

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

Name Type Description Default
avg_response_time int

allowed average response time in milliseconds

required

Fail ratio

Set how many percentages of requests that are allowed to fail before the whole scenario will be set as failed.

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

Name Type Description Default
fail_ratio int

percentage of requests that are allowed to fail

required

Response time percentile

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

Name Type Description Default
percentile int

percentile to validate (1-100)

required
response_time int

response time in milliseconds

required