password
查看人数
type
status
date
slug
summary
category
icon
tags
作者
状态
😀

json请求数据动态生成locust 脚本

 

curl转locust脚本

locust的HTML测试报告生成

from locust.html import get_html_report #方法的位置
res=get_html_report(env) with open(‘report.html’, ‘w’) as f: f.write(res)
 

根据不同的系统杀locust

杀掉所有在运行的locust进程:ps -ef |grep locust|grep -v grep | awk ‘{print $2}’ | xargs kill -9
win: taskkill /f /IM locust.exe
判断系统
 
 
💡
有关使用上的问题,欢迎您在底部评论区留言,一起交流~
 
 
 
locust 当做库使用,通过代码启动python 内置的array和list有什么区别?
Loading...