把task_set = UserBehavior
改成tasks = [UserBehavior]
即可
UserBehavior
指的是你继承TaskSet
的那个子类
具体参考:https://stackoverflow.com/questions/64336473/locust-0-9-to-1-3-exception-no-tasks-defined-use-the-task-decorator-or-set-th
把task_set = UserBehavior
改成tasks = [UserBehavior]
即可
UserBehavior
指的是你继承TaskSet
的那个子类
具体参考:https://stackoverflow.com/questions/64336473/locust-0-9-to-1-3-exception-no-tasks-defined-use-the-task-decorator-or-set-th