Last active
July 9, 2017 21:13
-
-
Save cmendesce/abe51b2f616c768d201d965065b0ade2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from locust import HttpLocust, TaskSet, task | |
| class WebTasks(TaskSet): | |
| @task | |
| def catalogue(self): | |
| self.client.get("/catalogue").json() | |
| @task | |
| def health(self): | |
| self.client.get("/health").json() | |
| class Web(HttpLocust): | |
| task_set = WebTasks | |
| min_wait = 0 | |
| max_wait = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment