httprunner 3.X (16)locust
2022-01-20 本文已影响0人
Sandra_liu
1、安装locust
pip3 install locust
2、检查locust是否安装成功
locust --help
3、执行locusts -f .\testcase,py,启动locust服务
locusts -f .\backstage_plate_test.py
NOTICE: gevent monkey patches have been applied !!!
No Path provided. Nothing to do 😴
[2022-01-20 18:32:54,579] LAPTOP-5MV3FBCC/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
[2022-01-20 18:32:54,588] LAPTOP-5MV3FBCC/INFO/locust.main: Starting Locust 2.5.1
4、打开网址:http://localhost:8089/,配置并发用户数,每秒启动用户数,开始执行
5、查看测试结果
image.png