-
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
WebUI Edit running load test
not carried user_classes
when enabled --class-picker
#2170
Comments
@mikenester Can you maybe take a look at this? Might be hard to do, but at the very least we should grey out the User & LoadShape options in the "edit running test dialog" to indicate that they cannot be changed. |
the code happened here is # Updating UserClasses
if form_data_user_class_names:
user_classes = {}
for user_class_name, user_class_object in self.environment.available_user_classes.items():
if user_class_name in form_data_user_class_names:
user_classes[user_class_name] = user_class_object
else:
user_classes = self.environment.available_user_classes
self._update_user_classes(user_classes)
# Updating ShapeClass if specified in WebUI Form
form_data_shape_class_name = request.form.get("shape_class", "Default")
if form_data_shape_class_name == "Default":
self._update_shape_class(None)
else:
self._update_shape_class(form_data_shape_class_name)
when the thanks team, please help for it. |
Yeah i can take a look a little later today |
@mikenester |
close it as #2171 merged into the project now. |
Describe the bug
--class-picker
, and it contains two userclass scripts(locustfile1.py,locustfile2.py), here we only pickup thelocustfile1.py
as the locust userclassEdit running load test
and it only show custom the concurrent user, spawn rate and host, no options ofUserClasses
andShapeClass
Start swarming
buttonExpected behavior
It should only run
locustfile1.py
user classActual behavior
It had run all the userclasses, including
locustfile1.py
andlocustfile2.py
Steps to reproduce
See above description
Environment
locust -f /scripts --class-picker
The text was updated successfully, but these errors were encountered: