locust简单使用

locust简单使用(待后续补充) 安装:pip install locust 编写测试脚本后如何执行呢? cmd找到打开脚本所在的路径 方式1:如果脚本中写了host,则直接输入locust -f xxxx.py回车,然后在浏览器中输入localhost:8089,打开性能监控页面,输入用户数等压测 方式2:如果脚本中没有指定host,则通过命令运行脚本时,要执行被测域名(host),如locu
相关文章
相关标签/搜索