JMeter 如何在命令提示符下禁用 summariser.name=summary 而 运行

JMeter how to disable summariser.name=summary while running from command prompt

我是运行命令行的Jmeter脚本。虽然 运行 我在每次请求后都会收到此摘要。我从文档中了解到我们需要注释或将 summariser.name=summary 设置为 none。我不想看到这个摘要。 PL。让我知道如何禁用它。

00:44:10.785 摘要 + 00:00:32 中的 6 = 0.2/s 平均:241 最小:2 最大:1239 错误:1 (16.67%) 活动:1 开始:1 完成:0 00:44:10.785 摘要 = 498 in 00:39:27 = 0.2/s 平均值:126 最小值:0 最大值:2851 错误:32 (6.43%) 00:44:42.892 摘要 + 7 in 00:00:31 = 0.2/s 平均:88 最小值:0 最大值:418 错误:0 (0.00%) 活动:1 开始:1 完成:0 00:44:42.892 摘要 = 505 in 00:39:57 = 0.2/s 平均值:126 最小值:0 最大值:2851 错误:32 (6.34%) 00:45:14.999 摘要 + 6 in 00:00:31 = 0.2/s 平均:73 最小值:2 最大值:216 错误:0 (0.00%) 活动:1 开始:1 完成:0 00:45:14.999 摘要 = 511 in 00:40:28 = 0.2/s 平均值:125 最小值:0 最大值:2851 错误:32 (6.26%) 00:45:41.565 摘要 + 00:00:31 中的 6 = 0.2/s 平均:68 最小值:2 最大值:205 错误:0 (0.00%) 活动:1 开始:1 完成:0 00:45:41.565 摘要 = 517 in 00:40:58 = 0.2/s 平均值:125 最小值:0 最大值:2851 错误:32 (6.19%) 00:46:13.681 摘要 + 6 in 00:00:31 = 0.2/s 平均:103 最小值:2 最大值:384 错误:0 (0.00%) 活动:1 开始:1 完成:0 00:46:13.681 摘要 = 523 in 00:41:29 = 0.2/s 平均值:124 最小值:0 最大值:2851 错误:32 (6.12%)

如果您不想在控制台中看到摘要输出,您可以将命令修改为

jmeter -Jsummariser.out=false -n -t test.jmx -l result.jtl

为了使更改永久化 - 将此行:summariser.out=false 放入 user.properties 文件。

如果您想完全关闭摘要器:

  1. 使用您喜欢的文本编辑器打开 jmeter.properties 文件

  2. 找到this line

    summariser.name=summary
    

    并通过在其前面放置 # 个字符来对其进行注释:

    #summariser.name=summary
    

    或者干脆删除它

  3. 就是这样,您不会在下次执行时看到摘要输出

更多信息: