added testing paragraph

This commit is contained in:
2025-07-10 11:27:44 +02:00
parent 5ba0e4aecf
commit 97019fb223
2 changed files with 28 additions and 0 deletions

View File

View File

@@ -0,0 +1,28 @@
from locust import HttpUser, task
class PerfConnectionTest(HttpUser):
@task
def index(self):
response = self.client.get("/")
@task
def login(self):
response = self.client.post("/showSummary", {"email": "admin@irontemple.com"})
class PerfBookTest(HttpUser):
@task
def bookPlaces(self):
response = self.client.post("/showSummary", {"email": "admin@irontemple.com"})
response = self.client.post("/purchasePlaces", {"club": "Iron Temple", "competition": "Fall Classic", "places": 2})
class PerfBoard(HttpUser):
@task
def board(self):
response = self.client.get("/points")