-
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
No Locust class found #621
Comments
Can someone please help? |
what is your locust file? |
`from locust import Locust, TaskSet, task class MyTaskSet(TaskSet): class MyLocust(Locust): |
I am able to run that fine locally after fixing indentation, can you give more context for why it's not working?
|
This is all I know of. What else can I collect - am quite new to this. Evaluating to see if I can use it for my testing of a webapp. |
@alok-nag |
i think |
@elfarqy yep yep. I renamed my file from |
I have the same issue, but in my case python file was the same as directory name. Idk why, but renaming helps |
I got this error when copy example from guide in to text editor and save as py file. When white space and tab are mixed this error were shown. |
I am getting the same error when I tried to run locust on windows. I have corrected the white space and indentation. Still when I tried to execute the command - locust - I am getting the same error |
Hi I've the same error on Win10. |
@StefanoGITA |
I'm on windows and I use locust (pipy locustio) 0.14.6
The example <https://docs.locust.io/en/stable/quickstart.html>on
documentation is different and don't show where put the url of the site.
Where can I find an example like that on home for locust 0.14.6?
Thanks.
Stefano G.
Il giorno mer 20 mag 2020 alle ore 10:28 Jonatan Heyman <
[email protected]> ha scritto:
… @StefanoGITA <https://github.com/StefanoGITA>
The examples on https://locust.io hadn't been properly updated after the
release of locust 1.0. It has now been fixed!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#621 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF4B4H3UM5SGRQWPJYB5KB3RSOIDPANCNFSM4DSRUQEQ>
.
|
@StefanoGITA The examples on https://locust.io has been updated for the latest stable version (1.0.1), and the old examples there are gone. Maybe you can find the old examples using WaybackMachine on https://archive.org |
Hi Jonatan
now wit 1.0.3 i can use locust on windows too.
Wonderful tool, I really appreciate your work.
Stefano G.
Il giorno ven 22 mag 2020 alle ore 17:50 Jonatan Heyman <
[email protected]> ha scritto:
… @StefanoGITA <https://github.com/StefanoGITA>
You can read the docs for 0.14.6 here:
https://docs.locust.io/en/0.14.6/index.html
The examples on https://locust.io has been updated for the latest stable
version (1.0.1), and the old examples there are gone. Maybe you can find
the old examples using WaybackMachine on https://archive.org
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#621 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF4B4H5UMZM2PJCTPW4K4ADRS2NNTANCNFSM4DSRUQEQ>
.
|
When I start locust using locust -f locustfile.py -H http://docs.locust.io
I get error saying: No Locust class found!
Python version is 2.7.12, running on Ubuntu VM.
Please let me know what needs to be done.
The text was updated successfully, but these errors were encountered: