Files
Learning/locustfile.py
T
2026-04-13 04:11:43 +03:30

9 lines
266 B
Python

from locust import HttpUser, task, between
class WebsiteUser(HttpUser):
wait_time = between(1, 3) # بین 1 تا 3 ثانیه بین درخواست‌ها صبر می‌کنه
@task
def get_products(self):
self.client.get("/api/account/get")