From b3feea2e19f21b078cd725e97079481f3af5495b Mon Sep 17 00:00:00 2001 From: 63846d858c742721fa5a7f94 <63846d858c742721fa5a7f94@devide> Date: Thu, 20 Apr 2023 03:31:33 +0000 Subject: [PATCH] UPDATE --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index e3a139e..887142c 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,7 @@ class WebsiteUser(HttpUser): max_wait = 2000 -# if __name__ == '__main__': -# import os -# os.system("locust -f main.py --host=https://www.baidu.com --headless -u 5 -r 1 --run-time 100s --stop-timeout 99") \ No newline at end of file +if __name__ == '__main__': + import os + # os.system("locust -f main.py --host=https://www.baidu.com --headless -u 5 -r 1 --run-time 100s --stop-timeout 99") + os.system("locust -f main.py --host=https://www.baidu.com") \ No newline at end of file -- GitLab