Skip to content

Instantly share code, notes, and snippets.

@cmendesce
Last active July 9, 2017 21:13
Show Gist options
  • Select an option

  • Save cmendesce/abe51b2f616c768d201d965065b0ade2 to your computer and use it in GitHub Desktop.

Select an option

Save cmendesce/abe51b2f616c768d201d965065b0ade2 to your computer and use it in GitHub Desktop.
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