Exesize
/
locustfile.py
15 строк · 546.0 Байт
1from locust import HttpUser, task2
3SERVER_IP_ADDR = '134.0.113.9'4
5
6class LoadTestingBraniacLMS(HttpUser):7@task8def some_pages_open(self):9self.client.get(f"http://{SERVER_IP_ADDR}/home/")10self.client.get(f"http://{SERVER_IP_ADDR}/home/courses")11self.client.get(f"http://{SERVER_IP_ADDR}/home/news/")12self.client.get(f"http://{SERVER_IP_ADDR}/home/courses/3/detail")13
14self.client.get(f"http://{SERVER_IP_ADDR}/authapp/register")15self.client.get(f"http://{SERVER_IP_ADDR}/authapp/login/")16
17