会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GoodMorning9527
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
locust
提取token(通用)
摘要:result = re.search(r'token=(.+?)"',respones.text)token = result.group(1)
阅读全文
posted @
2022-07-06 10:22
GoodMorning9527
阅读(104)
评论(0)
推荐(0)
os模块——获取上层目录
摘要:import os # 获取当前目录 print(os.getcwd()) print(os.path.abspath(os.path.dirname(__file__))) print(os.path.abspath('.')) # 获取当前文件 print(os.path.abspath(__f
阅读全文
posted @
2022-07-05 10:25
GoodMorning9527
阅读(241)
评论(0)
推荐(0)
locust参考
摘要:1,https://www.freesion.com/article/7859638228/ 2(参数化),https://www.cnblogs.com/fengqu/p/12449344.html 3,https://www.icode9.com/content-4-1049712.html
阅读全文
posted @
2022-07-04 09:37
GoodMorning9527
阅读(31)
评论(0)
推荐(0)
locust实现登录
摘要:可参考:https://www.it610.com/article/1393774645764771840.htmimport os,pytestfrom locust import HttpUser,HttpLocust,FastHttpUser,constant,between,task,Tas
阅读全文
posted @
2022-06-30 15:26
GoodMorning9527
阅读(115)
评论(0)
推荐(0)
locust 启动命令
摘要:locust -H http://192.168.1.235/disaster/login -f day3.py
阅读全文
posted @
2022-06-30 10:46
GoodMorning9527
阅读(143)
评论(0)
推荐(0)