initial NearBeach

This commit is contained in:
2026-10-28 21:00:21 -04:00
parent 3d61b05194
commit ef252a02e5
1797 changed files with 800198 additions and 56 deletions

View File

@@ -0,0 +1,25 @@
# Import the locust libraries
import getpass
from locust import HttpUser, task, between
# Request the username and password to login into NearBeach
username = input("\nPlease enter the username: ")
password = getpass.getpass("\nPlease enter the password: ")
class QuickstartUser(HttpUser):
wait_time = between(1, 2)
def on_start(self):
"""on_start is called when a Locust start before any task is scheduled"""
self.client.post(
"/login", json={"id_username": username, "id_password": password})
@task
def dashboard(self):
self.client.get("/")
@task(3)
def requirement_information(self):
for _ in range(10):
self.client.get("/requirement_information/1")