JMeter 3.2 CookieHandler 出错:无法添加 cookie 错误

Getting error with JMeter 3.2 CookieHandler: Unable to add the cookie error

我目前在 Mac (macOS Sierra) 上安装了 Jmeter 3.2。现在我想安装 3.1,因为 jmeter ERROR o.a.j.p.h.c.HC4 CookieHandler: Unable to add the cookie 错误。

如何通过自制软件安装旧版本。我做了 brew install jmeter -3.1 但那不起作用。

您可以尝试通过将下一行添加到 user.properties 文件

来解决这个问题
CookieManager.check.cookies=false

需要重新启动 JMeter 才能选择 属性。您也可以尝试使用不同的 Cookie Policy 值:

有关详细信息,请参阅 Using the HTTP Cookie Manager in JMeter


如果您仍然想要 运行 JMeter 3.1(或 JMeter Archives 中可用的任何其他版本),则不需要 "install" 它,JMeter 是一个 Java 的应用程序,因此下载、解压缩和 运行 就足够了。如果您使用 brew 我相信您使用的是 MacOSX,"Terminal" 应用程序中的步骤将如下所示:

  1. wget http://apache.claz.org//jmeter/binaries/apache-jmeter-3.1.tgz
  2. tar xf apache-jmeter-3.1.tgz
  3. cd apache-jmeter-3.1/bin/
  4. ./jmeter.sh