全局级别的 JMeter cookie 管理器 [英] JMeter cookie manager at the global level

查看:38
本文介绍了全局级别的 JMeter cookie 管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JMeter 文档指出应该在线程组级别添加 cookie 管理器.但是,在测试计划级别添加它会发生什么和/或可能的副作用是什么?我是否正确地假设所有线程组都会选择这个全局 cookie 管理器并按预期进行而没有错误?这通常是不受欢迎的吗?只是想更好地了解它在 JMeter 中的工作原理.

The JMeter documentation states that the cookie manager should be added at the Thread Group level. However what happens and/or what are the possible side effects of adding it at the Test Plan level? Am I correct in making the assumption all Thread Groups will pick up this global cookie manager and proceed as expected w/ no errors? Is this typically frowned upon? Just looking for a better understanding of how this works in JMeter.

推荐答案

我一直使用在测试计划级别而不是测试组添加的 HTTP Cookie 管理器适用于任何性能/负载测试场景,没有任何问题.

I've always used HTTP Cookie Manager added at the Test Plan level instead of Test Group one for any performance/load test-scenario WITHOUT any issues.


这里来自 Jmeter 支持的回答:


Here an answer from Jmeter support:

是否可以通过同一测试计划的不同线程组传播"cookie?

Is it possible to "propagate" cookies through different Thread Groups of the same Test Plan?

没有.JMeter 线程旨在代表独立用户,因此 cookie 和变量是本地的线程.

No. JMeter threads are intended to represent independent users, so cookies and variables are local to a thread.


如果您真的对此感兴趣,您将通过为您的 HTTP Cookie 管理器启用调试来获得更多信息:
选择 Cookie 管理器 >在 jmeter 的主菜单中单击帮助 >单击启用调试.
所以你会在 jmeter.log 中找到 Cookie 管理器的调试信息.


If you are really interested in you will get more information by enabling debug for your HTTP Cookie Manager:
select Cookie Manager > click Help in jmeter's main menu > click Enable Debug.
So you will find in jmeter.log debug info for Cookie Manager.

这篇关于全局级别的 JMeter cookie 管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆