From 0a52d87dc4f5dab40f8ec59a048324b73ce2a8cd Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Fri, 21 May 2021 15:14:23 +0300 Subject: locustfile: Add new load test for a simple test-case Load test fetching a single trait using Locust. --- locustfile.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 locustfile.py diff --git a/locustfile.py b/locustfile.py new file mode 100644 index 00000000..4abf3f1c --- /dev/null +++ b/locustfile.py @@ -0,0 +1,13 @@ +"""Load test a single trait page""" +from locust import HttpUser, task, between + + +class LoadTest(HttpUser): + wait_time = between(1, 2.5) + + @task + def fetch_trait(self): + """Fetch a single trait""" + # /api/v_pre1/gen_dropdown + self.client.get("/show_trait?trait_id=" + "1457545_at&dataset=HC_M2_0606_P") -- cgit v1.2.3