[英](Locust_Jmeter) TypeError: get() takes 2 positional arguments but 3 were given
response = self.client.get('/public/v1/users/', res_Id)
TypeError: get() takes 2 positional arguments but 3 were given
What is res_Id?什么是 res_Id?
Just remove , res_Id
只需删除, res_Id
I came into same issue and found.我遇到了同样的问题并找到了。
You forgot to add 'self' object reference in your get() fun.您忘记在 get() 乐趣中添加“自我”对象引用。
check your get()检查你的 get()
Replace代替
def get(route , res_Id)
to至
def get(self, route , res_Id)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.