locust简单使用(待后续补充)

安装:pip install locust

编写测试脚本后如何执行呢?
locust简单使用
cmd找到打开脚本所在的路径
方式1:如果脚本中写了host,则直接输入locust -f xxxx.py回车,然后在浏览器中输入localhost:8089,打开性能监控页面,输入用户数等压测
locust简单使用

方式2:如果脚本中没有指定host,则通过命令运行脚本时,要执行被测域名(host),如locust -f xxxx.py --host=http://xxxxx格式,如果是https写就https://xxxxxx
locust简单使用

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2021-10-22
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-01-29
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-01-22
  • 2021-10-11
相关资源
相似解决方案