added testing paragraph
This commit is contained in:
0
tests/performance_tests/__init__.py
Normal file
0
tests/performance_tests/__init__.py
Normal file
28
tests/performance_tests/locustfile.py
Normal file
28
tests/performance_tests/locustfile.py
Normal 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")
|
||||||
Reference in New Issue
Block a user