性能测试
等风吹凉了
这个作者很懒,什么都没留下…
展开
-
Python-Locust性能测试:编写性能测试脚本
#发送首页请求,通过locust进行性能测试from locust import HttpLocust,task,TaskSet#定义测试类,继承TaskSet:用户行为class userbehavior(TaskSet): #指定测试任务 @task def test_pager(self): #发送首页请求给服务器 get,post self.client.get("/")#HttpLocust:模拟用户操作,通过发送请求(get,pos原创 2020-07-18 11:44:45 · 294 阅读 · 0 评论 -
Win10系统cmd窗口安装Locust报错的坎坷之路
问题:cmd窗口安装Loust报错You are using pip version 9.0.3, however version 20.1.1 is available.You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.您使用pip版本9.0.3,然而版本20.1.1是可利用的。您应该考虑升级通过python -m pip install --upgrade pip’命令。解决方原创 2020-07-16 16:45:11 · 1136 阅读 · 0 评论