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 | |
import random | |
import json | |
class EventAPITasks(TaskSet): | |
def on_start(self): | |
with self.client.post("/api/user/register", { | |
'username': self.locust.username, | |
'password': self.locust.password |