Open ctissellb opened 2 months ago
This is actually a very good suggestion. I will add it to the next release v5.8.0
Hi @ctissellb What do you think about this API:
"GlobalSettings": {
"ScenariosSettings": [
{
"ScenarioName": "scenario",
"ThresholdSettings": [
{ "StepName": "global-info", "StatusCode": ["200", "Count => 20"] },
{ "StepName": "login", "Errors": "Percent > 20" },
{ "StepName": "logout", "Latency": "P50 >= 30" },
{ "StepName": "logout", "Latency": "Max >= 900" },
{ "StepName": "logout", "Request": "RPS >= 900" }
]
}
]
}
Works for me!
It would be quite handy to be able to use the config to set global or per scenario latency and failure percent thresholds rather than MaxFailCount.
For instance:
MaxFailPercent: 10 <-- Scenario failure rate must not exceed 10% MaxHighLatencyPercent: [10, 500] <-- The number of scenarios that take longer than 500ms to complete must not exceed 10%