摘要: 参考:https://docs.locust.io/en/stable/writing-a-locustfile.html 阅读全文
posted @ 2019-04-07 18:28 凯宾斯基 阅读(187) 评论(0) 推荐(0)
摘要: # coding=utf-8from locust import HttpLocust, TaskSet, taskimport requests # 定义用户行为class UserBehavior(TaskSet): @task def baidu_index(self): #请求参数 payl 阅读全文
posted @ 2019-04-07 17:20 凯宾斯基 阅读(793) 评论(1) 推荐(0)
摘要: 个人理解 with self.client.get("/", catch_response=True) as response:其实就是 response = self.client.get("/", catch_response=True) 来源:https://www.cnblogs.com/DswCnblog/p/6126588.htmlWith语句是什么? 有一些任务,可能事先需要设置... 阅读全文
posted @ 2019-04-07 16:08 凯宾斯基 阅读(597) 评论(0) 推荐(0)