update load test locust file for more relevant URLs
@@ -4,10 +4,15 @@ from locust import HttpUser, task, constant_pacing
class QuickstartUser(HttpUser):
wait_time = constant_pacing(1)
+ # note: this URL is a form, thus doing a POST request with a search would be more appropriate
@task
- def index_page(self):
+ def owners_find(self):
self.client.get("/owners/find")
+ @task
+ def owners_list(self):
+ self.client.get("/owners")
+
@task(3)
def gen_error(self):
self.client.get("/oups")
