question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebUI `Edit running load test` not carried `user_classes` when enabled `--class-picker`

See original GitHub issue

Describe the bug

  1. Run the web ui with option --class-picker, and it contains two userclass scripts(locustfile1.py,locustfile2.py), here we only pickup the locustfile1.py as the locust userclass
  2. When the script is running, from the top right click the Edit running load test and it only show custom the concurrent user, spawn rate and host, no options of UserClasses and ShapeClass
  3. Then click the Start swarming button

Expected behavior

It should only run locustfile1.py user class

Actual behavior

It had run all the userclasses, including locustfile1.py and locustfile2.py

Steps to reproduce

See above description

Environment

  • OS:
  • Python version: 3.10.2
  • Locust version: (please dont file issues for anything but the most recent release or prerelease builds) 2.11.0
  • Locust command line that you ran: locust -f /scripts --class-picker
  • Locust file contents (anonymized if necessary):

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mikenestercommented, Aug 23, 2022

@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.

Yeah i can take a look a little later today

0reactions
alterhu2020commented, Aug 26, 2022

close it as #2171 merged into the project now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration — Locust 2.14.0 documentation
A Master node need Worker nodes that connect to it before it can run load tests. --master Set locust to run in distributed...
Read more >
locust/CHANGELOG and locust Releases (Page 8) | LibHunt
Editing a running test in the Web UI with class-picker restarts user count back at 0 ... WebUI Edit running load test not...
Read more >
locust/CHANGELOG.md at master · locustio/locust - GitHub
Fixed bugs: WebUI Edit running load test not carried user_classes when enabled --class-picker #2170. Merged pull requests:.
Read more >
Newest 'webui' Questions - Stack Overflow
Locust - Shape Class ignored when running Web UI with --class-picker. I saw that locust supports defining different user classes and shape classes...
Read more >
https://raw.githubusercontent.com/locustio/locust/...
... WebUI `Edit running load test` not carried `user_classes` when enabled `--class-picker` [\#2170](https://github.com/locustio/locust/issues/2170) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found