Closed ctissellb closed 1 month 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!
Hey @ctissellb Could you please try the latest beta: https://www.nuget.org/packages/NBomber/5.8.0-beta.3 Here you can find more info about Threshold feature
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%