Created
September 28, 2020 14:58
-
-
Save ehzawad/170589169037fd91c95a44ab2ec57e01 to your computer and use it in GitHub Desktop.
This file contains 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 User, HttpUser, TaskSet, task, between | |
class MyTasks(TaskSet): | |
@task | |
def load_user_profile(self): | |
self.client.get("/polls") | |
wait_time = between(5, 15) | |
class MyWebsiteUser(HttpUser): | |
tasks = [MyTasks] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment