-
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
Unable to load multiple custom shape classes in web UI from --class-picker #2412
Comments
2.15.1 is not latest version |
It doesn't work in 2.16.1 either |
I can reproduce the error: The problem is that the class picker was only ever implemented for reading the shape classes from different files (e.g. using The class picker was implemented by @mikenester . I dont know if he has time to take a look. |
It's been a minute since I've touched this, but I can definitely take a look. @shamithas99 Thanks for the details & screenshots on your report 🙏 |
I have tried to implement class picker with shape files in different files but we don't see all the shape files coming in the UI dropdown, if there is more than 1 shapefile. |
@mikenester Did you have time to investigate this? |
@cyberw Sorry, I've been quite busy and lost sight of this. I was trying to take a look today, but while setting up the project, I'm getting the following error when running
I'm guessing I need to force it to use |
Try updating setuptools and pip to latest versions. |
That worked. Thanks 🙏 I suspect this is the offending block of code. I'll try to have a fix soon. |
Prerequisites
Description
Why does locust load only the 1st LoadTestShape class in web UI, when there is more than 1 LoadTestShape class defined in locustfile?
In the docs we can see multiple shape classes appearing in the UI but unable to implement it.
Command line
locust -f locustfile.py --class-picker
Locustfile contents
Python version
3.9
Locust version
2.16.1
Operating system
Windows
The text was updated successfully, but these errors were encountered: