httprunner3.x--性能测试(locust) locust安装(性能测试)

原理: 使用的是locust

但是locusts -f 和 locust -f的区别是前者可以运行.yaml或.json文件,并且转换为python文件,再按照locust的方式运行;

1.安装locust

locust安装(性能测试)

验证是否安装成功:locust --help

2.在项目路径下执行

locusts -f xxxx/xxxxxx.yaml     或者是   locusts -f xxxx/xxxxxx.json

3.访问   http://localhost:8089/,设置参数,点击start

猜你喜欢

转载自www.cnblogs.com/may18/p/13380437.html