在Taurus中,如何设置“每次迭代清除cookie”为真?
我试图在 Taurus yaml 中的每次迭代后清除 cookie。
我尝试了下面线程的解决方案,但它不起作用: [Google 网上论坛] https://groups.google.com/ g/codename-taurus/c/wa4xIbxkUYI?pli=1
上面的线程说: 作为参考,我是这样做的:
modifications:
set-prop:
"Cookies>CookieManager.clearEachIteration": "true"
我尝试过同样的方法,但没有成功。
使用 JMeter 我可以清除 cookie,但 Taurus 需要相同的行为。任何帮助。
I am trying to clear cookies after each iteration in Taurus yaml.
I tried the solution from below thread but it didn't work:
[Google Group] https://groups.google.com/g/codename-taurus/c/wa4xIbxkUYI?pli=1
Above thread says:
For reference I did it like this:
modifications:
set-prop:
"Cookies>CookieManager.clearEachIteration": "true"
I have tried the same but didn't work.
Using JMeter I can clear the cookies but need the same behavior for Taurus. Any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“对于金牛座来说”是什么意思? Taurus 只是提供一些 JMeter 测试元素的 YAML 配置。您所指的“解决方案”是使用 Taurus 运行现有的 .jmx 脚本,
当涉及 从配置构建测试计划,请参阅文档以了解支持的内容。
如果您想使用 Taurus 不支持的某些 JMeter 功能,可以选择以下选项:
sampler.getCookieManager().clear()
函数,其中sampler
代表 HTTPSamplerBaseWhat do you mean "for Taurus"? Taurus just provides YAML configuration of some of JMeter test elements. The "solution" you're referring is for running existing .jmx script using Taurus
Taurus doesn't support 100% of JMeter functionality when it comes to building test plan from config, refer the documentation to see what is supported.
If you want to use some JMeter functionality which is not supported by Taurus the options are in:
sampler.getCookieManager().clear()
function there wheresampler
stands for HTTPSamplerBase