【问题标题】:JMeter performance plugin report always showing 100% of errors on 200 success response codeJMeter 性能插件报告总是在 200 成功响应代码上显示 100% 的错误
【发布时间】:2015-09-04 15:08:32
【问题描述】:

构建完成后,性能趋势报告错误栏显示100%错误而HTTP响应码为200(成功)

预期结果:应该是错误列中的 0% 错误。

我们在 jenkins 1.607

中有性能插件 1.13

我的 .jtl 文件包含:

1434631428652,2082,Deactivate_Enrollee,200,OK,setUp Thread Group 1-1,text,true,536,2073
1434631430748,574,Activate_Enrollee,200,OK,setUp Thread Group 1-1,text,true,536,574
1434631431323,315,User_Status,200,OK,setUp Thread Group 1-1,text,true,1317,315
1434631431711,1,Debug Sampler,200,OK,setUp Thread Group 1-1,text,true,807,0

控制台输出:

Started by user anonymous
Building in workspace /results/jtls
Performance: Percentage of errors greater or equal than 0% sets the build as unstable
Performance: Percentage of errors greater or equal than 0% sets the build as failure
Performance: Recording JMeter reports '*.jtl'
Performance: Parsing JMeter report file APITest_JMeter.jtl
Performance: File APITest_JMeter.jtl reported 100.0% of errors [FAILURE]. Build status is: FAILURE
Build step 'Publish Performance test result report' changed build result to FAILURE
Finished: FAILURE

谁能帮詹金斯解决这个问题?

【问题讨论】:

  • 对我的回答有任何反馈吗?如果它有帮助,应该被接受并可能被赞成,以便对其他人有帮助
  • 我不能每次都手动更新我的 jtl 文件,这是由 jenkins 在执行测试后自动创建的。甚至我也尝试过从 git repo 获取性能插件的最新代码。为了解决这个问题,我将报告从 jtl 移到 xml 以解决 100% 错误问题,对于 URI 问题,我将性能插件版本降级到 1.11。谢谢。
  • 你的 csv 文件是如何生成的,这不是我解释的标准 jmeter 输出。你能显示你的 jmeter.properties 和 user.properties 的内容吗?我想我现在知道你的问题来自哪里

标签: plugins jenkins automation continuous-integration jmeter


【解决方案1】:

我认为您可能面临着众所周知的严重错误28426 of Performance Plugin。

【讨论】:

  • 是的,据报道有一个 .. 但我通过从 jtl 移至 xml 解决了 100% 错误问题 ..
【解决方案2】:

似乎是因为 Performance Plugin 1.13 版本的缺陷。

您可以使用 Performance Plugin 1.9 或更低版本,如果这能解决您的问题,请告诉我们。

【讨论】:

  • 1.9 不支持 Jenkins 1.607,所以我继续使用 1.11,它工作正常,但在此之前.. 为了解决 100% 错误问题,我使用 xml 而不是 jtl。
【解决方案3】:

您的 jtl 文件对于来自的插件有误:

因此,这会导致无法通过此代码将此值解析为布尔值:

sample.setSuccessful(Boolean.valueOf(values[successIdx]));

我觉得你的saveservice配置不太适合插件,你应该设置:

jmeter.save.saveservice.response_message=false

【讨论】:

  • 我试图从 git repo 获取最新的代码,但不幸的是这并没有解决这个问题。所以我只是将性能插件降级到 1.11 并使用 xml 而不是 jtl 来解决 URI 问题。
猜你喜欢
  • 1970-01-01
  • 2019-04-02
  • 1970-01-01
  • 1970-01-01
  • 2020-08-02
  • 1970-01-01
  • 2022-08-23
  • 2013-09-08
  • 2019-06-14
相关资源
最近更新 更多