Closed pranavthombare closed 2 months ago
right now it cant be done in locust, because it doesnt show custom arguments under argument groups. I'll see if it can be fixed. I filed a separate issue for it: https://github.com/locustio/locust/issues/2560
You can do it from code, like this:
os.environ["LOCUST_OVERRIDE_PLAN_NAME"] = "my_special_name"
I tried using the above method. But I wasn't able to make the above change show any effect.
I'm trying it on a locust UI where I keep running different load tests. I want to rename each load test differently. If I can change that in the UI when starting a new test, that would solve my issue.
Until then my best guess is that i'm using os.environ["LOCUST_OVERRIDE_PLAN_NAME"] = "my_special_name"
in a wrong location. Maybe in HTTPUser class?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This issue was closed because it has been stalled for 10 days with no activity. This does not necessarily mean that the issue is bad, but it most likely means that nobody is willing to take the time to fix it. If you have found Locust useful, then consider contributing a fix yourself!
https://github.com/SvenskaSpel/locust-plugins/issues/159
As asked in this issue, I want to update the override-test-plan field from a locustfile. Is there a way that I can set that field in my locustfile during the runtime.
Assuming that I run a locust UI and give a field where user can enter the testplan name and it reflects on the grafana page.