mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 16:25:54 +01:00
16 lines
396 B
Python
16 lines
396 B
Python
|
from locust import HttpUser, task, between
|
||
|
|
||
|
class APITest(HttpUser):
|
||
|
#wait_time = between(0.5, 3.0)
|
||
|
|
||
|
def on_start(self):
|
||
|
""" on_start is called when a Locust start before any task is scheduled """
|
||
|
pass
|
||
|
|
||
|
def on_stop(self):
|
||
|
""" on_stop is called when the TaskSet is stopping """
|
||
|
pass
|
||
|
|
||
|
@task(1)
|
||
|
def index(self):
|
||
|
self.client.get("/api")
|