-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added blocks to start and edit #1823
Added blocks to start and edit #1823
Conversation
… tabs of a loadtest. This will allow people to add different options to start a test with.
PR for #1822 (comment) |
I dont understand how this would work and it needs some documentation and ideally a test case. |
The two lines added are block statements that work the same way as the three already added block statements do. It will allow the user to add html code inside these blocks to extend the way their code starts and stops load tests. You can couple this with the scripts block at the bottom of |
I guess you can add the example in a new folder under examples, like the other example. Explain what it does and link it from the same place (extending-locust.rst / https://docs.locust.io/en/stable/extending-locust.html#extending-web-ui) I guess a test may be overly ambitious. You can skip that. |
… the backend before starting the load test
@cyberw Just added an example to the That is what the example UI looks like. Let me know if you have any other suggestions 😄 |
Hmm. This is really a nice feature and I understand why you'd want it. But I think we need to make it nicer & more integrated into Locust. Locust already has a (poorly documented) way to add custom arguments https://docs.locust.io/en/latest/api.html#locust.event.Events.init_command_line_parser (example usage: https://github.com/locustio/locust/blob/master/examples/add_command_line_argument.py) If we just showed any custom arguments as input fields it would be very flexible and much easier for the user to use (no need to know jinja to be able to add arguments) It would also be nice to make an "advanced" tab that lists all the arguments (but that is just nice to have, and some arguments are not possible to change at test start time) |
Hmm ya that would probably be a more sustainable way to add custom starts params. I do not have the time now to make all of that so I will probably just proceed with my private fork. Thanks for you help. |
Ok! |
This will allow people to add different options to start and edit a test with.