Stress test1 Locust Sample Code locustfile.pyfrom locust import HttpLocust, TaskSet def login(l): l.client.post("/goodnight/api/v3/users/signin/normal", {"email":"joe.cho@email.com", "pw":"password", "social_id":0}) def profile(l): l.client.get("/goodnight/api/v3/users/profile") class UserBehavior(TaskSet): tasks = {profile: 1} def on_start(self): login(self) class WebsiteUser(HttpLocust): task_set = UserBehavior min_wait = 50.. 2018. 11. 27. 이전 1 다음