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

ERROR/locust.main: No Locust class found! #449

Closed
PawelJ-PL opened this issue Jul 15, 2016 · 1 comment
Closed

ERROR/locust.main: No Locust class found! #449

PawelJ-PL opened this issue Jul 15, 2016 · 1 comment

Comments

@PawelJ-PL
Copy link

Hi,

I'm getting error: xxx/ERROR/locust.main: No Locust class found! when I try to run test.

Command:
locust --host=http://127.0.0.1 -f /home/me/PycharmProjects/project/load_tests/locust_tests/basic_scenario/basic_scenario.py

basic_scenario.py:
`# -- coding: utf-8 --

from locust import HttpLocust, TaskSet, task

class GettingEvents(TaskSet):
@task(1)
def login(self):
self.client.post("/")

class BasicScenario(HttpLocust):
task_ser = GettingEvents
min_wait = 5000
max_wait = 9000
`

Python modules:
pip freeze click==6.6 Flask==0.11.1 gevent==1.1.1 greenlet==0.4.10 itsdangerous==0.24 Jinja2==2.8 locustio==0.7.5 MarkupSafe==0.23 msgpack-python==0.4.7 pkg-resources==0.0.0 pyzmq==15.3.0 requests==2.10.0 Werkzeug==0.11.10

python --version
Python 2.7.12rc1

@PawelJ-PL
Copy link
Author

My bad, it was typo (tesk_ser instead of task_set)

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

No branches or pull requests

1 participant