9 lines
266 B
Python
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")
|