Skip to content

Instantly share code, notes, and snippets.

View quangnguyenbh's full-sized avatar

Quang Nguyen quangnguyenbh

View GitHub Profile
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