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

Allow User weight adjustment (and task selection) in UI when running with --class-picker, or on command line with --config-users argument #2559

Merged
merged 14 commits into from
Jan 19, 2024

Conversation

andrewbaldwin44
Copy link
Collaborator

  • Extend the class picker in the web UI to allow editing any property on a locust user
  • Add a new property to the environment, available_user_tasks. This will allow for editing which tasks will be ran
  • Add a new parser argument --user-config. This argument allows for passing a JSON object or file to configure all properties on a locust user
  • Added tests to protect functionality in locust and the web ui
    image
    image

@andrewbaldwin44 andrewbaldwin44 force-pushed the feature/2545 branch 2 times, most recently from 1d352c2 to 2ac3818 Compare January 18, 2024 22:41
@cyberw
Copy link
Collaborator

cyberw commented Jan 19, 2024

Looks amazing. Can you add some documentation in configuration.rst?

@andrewbaldwin44 andrewbaldwin44 force-pushed the feature/2545 branch 4 times, most recently from 9b3e06c to b4bc490 Compare January 19, 2024 15:27
@andrewbaldwin44
Copy link
Collaborator Author

andrewbaldwin44 commented Jan 19, 2024

Flaky tests are fixed now, sorry about that :)

@cyberw
Copy link
Collaborator

cyberw commented Jan 19, 2024

Great stuff!

@cyberw cyberw changed the title Improve the Class Picker Allow User weight adjustment (and task selection) in UI when running with --class-picker, or on command line with --user-config argument Jan 19, 2024
@cyberw cyberw merged commit 02c7937 into locustio:master Jan 19, 2024
14 checks passed
@andrewbaldwin44 andrewbaldwin44 changed the title Allow User weight adjustment (and task selection) in UI when running with --class-picker, or on command line with --user-config argument Allow User weight adjustment (and task selection) in UI when running with --class-picker, or on command line with --config-users argument Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants