【发布时间】:2021-03-11 04:19:01
【问题描述】:
我想为用户的所有请求共享 _profiler cookie,无论如何要在 locust 中执行此操作?
self.client.post(
"/customer/account/loginPost/bind/no/",
headers = headers,
data = {
'login[username]': email,
'login[password]': password,
'form_key': form_key
},
cookies={
'_profiler': True
}
)
//Another request in another task, I hope the `_profiler` cookies exists here.
self.client.get('/customer/section/load?sections=cart&force_new_section_timestamp=false',headers=headers)
【问题讨论】:
标签: locust