【发布时间】:2020-09-28 19:38:52
【问题描述】:
我们真的是 locust.io 的新手,并且已经设置了一个负载测试,允许用户在电子商务网站上结帐。在 orderconfirmation 页面上,我们希望/需要在运行结束时清除用户 cookie,以便在重新启动时没有保存的 cookie。在这方面获得一些帮助会很棒!不幸的是,Python 不是我每天都在使用的语言,所以我相信这很简单,有人可以提供帮助!
class CheckoutPage(TaskSet):
@task(1)
def checkout(self):
self.client.get("/Checkout/OrderConfirmation")
# I want to clear cookies here so the httpuser starts over with no cookies
【问题讨论】:
标签: locust