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

Unable to modify custom parameters from UI using modern UI #2489

Closed
2 tasks done
ricky-bhatia opened this issue Nov 27, 2023 · 2 comments · Fixed by #2491
Closed
2 tasks done

Unable to modify custom parameters from UI using modern UI #2489

ricky-bhatia opened this issue Nov 27, 2023 · 2 comments · Fixed by #2491
Labels

Comments

@ricky-bhatia
Copy link

Prerequisites

Description

I have defined a set of custom command line parameters with default values in my locustfile. However I noticed that if I use the --modern-ui then it does not allow me edit the custom parameter from UI. The same thing works fine on the original UI. In the below example I am expecting to edit the "email_id" and "device_id" via UI.

Command line

locust -f locustfile.py --modern-ui --all-requests

Locustfile contents

@events.init_command_line_parser.add_listener
def _(parser):
    parser.add_argument("--email_id", default="abc@test.com", help="Registered user ID")
    parser.add_argument("--all-requests", action="store_true", help="Log every request in CSV")
    parser.add_argument("--device_id", default="dummy_id", help="Device ID")

Python version

3.10.3

Locust version

2.19.0

Operating system

Win 11

@cyberw
Copy link
Collaborator

cyberw commented Nov 27, 2023

Ping @andrewbaldwin44 :)

@andrewbaldwin44
Copy link
Collaborator

andrewbaldwin44 commented Nov 27, 2023

Nevermind I see what you mean by can't edit now 👍 :)

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

Successfully merging a pull request may close this issue.

3 participants