Skip to content
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

locust should add extending blocks to index.html to change the start test and edit test options #1822

Closed
TWoeste opened this issue Jul 23, 2021 · 4 comments

Comments

@TWoeste
Copy link

TWoeste commented Jul 23, 2021

Is your feature request related to a problem? Please describe.

I want to be able to configure different options when starting a test with another field/toggle other than just the spawn rate and number of users.

Describe the solution you'd like

I would like to have {% extended_on_start %} and {% extended_edit_test %} to index.html so I can add in my own code new input fields to specify what kind of test I want. I am writing changes to my loadtester and based off of this toggle I want the code to set a flag that will tell what object to create.

Describe alternatives you've considered

I have considered forking the respository and changing the locust UI myself but I think is a little overkill for the small change I am thinking of. I have also considered adding a screen before you get to the start menu with the toggles but I am not sure how to do this currently and I think it will not look the best.

@TWoeste
Copy link
Author

TWoeste commented Jul 23, 2021

This could also be a solution to this problem.
You could use this UI change if you already had the different tasksets with your locust files

@cyberw
Copy link
Collaborator

cyberw commented Jul 23, 2021

I dont think that problem (launching a completely different locust file) can be solved this way, but other than that I understand that being able to add UI fields might be useful. I’d be happy to look at a PR.

@TWoeste
Copy link
Author

TWoeste commented Jul 23, 2021

@cyberw I am trying to push a PR and it is telling me I do not have access to push a PR? Any help? I get this error,

fatal: unable to access 'https://github.com/locustio/locust.git/': The requested URL returned error: 403

@cyberw
Copy link
Collaborator

cyberw commented Jul 23, 2021

You need to push to your fork and then open a PR from your repo to locust master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants