随笔分类 -  locust

摘要:result = re.search(r'token=(.+?)"',respones.text)token = result.group(1) 阅读全文
posted @ 2022-07-06 10:22 GoodMorning9527 阅读(71) 评论(0) 推荐(0) 编辑
摘要: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 阅读(211) 评论(0) 推荐(0) 编辑
摘要: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 阅读(18) 评论(0) 推荐(0) 编辑
摘要:可参考: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 阅读(97) 评论(0) 推荐(0) 编辑
摘要:locust -H http://192.168.1.235/disaster/login -f day3.py 阅读全文
posted @ 2022-06-30 10:46 GoodMorning9527 阅读(117) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示