seq_task does not work, with following code and cmd, locust 0.9.0:
locust -f test.py --host=http://127.0.0.1:81 --no-web -c 1
from locust import HttpLocust, TaskSet, task
from locust import seq_task
class MyTaskSet(TaskSet):
def on_start(self):
print "start"
@seq_task(1)
def step1(self):
print "step 1"
@seq_task(2)
@task(2)
def setp2(self):
print "step 2"
@seq_task(3)
@task(3)
def step3(self):
print "step 3"
class MyLocust(HttpLocust):
task_set = MyTaskSet
sequence is random, no pattern, remove @task() with only @seq_task() left makes no difference
@Ramshell Cloud you help check? Thanks
I think you should use TaskSquence instead of TaskSet as the super class.
I think you should use TaskSquence instead of TaskSet as the super class.
My mistake, thx, close this one.
Most helpful comment
I think you should use TaskSquence instead of TaskSet as the super class.