JMeter性能插件报告始终显示200个成功响应代码的100%错误

时间:2015-06-18 19:49:39

标签: plugins jenkins automation continuous-integration jmeter

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

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

jenkins 1.607

性能插件1.13

enter image description here

我的.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

任何人都可以为詹金斯解决这个问题吗?

3 个答案:

答案 0 :(得分:1)

似乎是由于Performance Plugin 1.13版本中的缺陷。

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

答案 1 :(得分:1)

您的jtl文件对于插件来说是错误的:

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

  

sample.setSuccessful(通过Boolean.valueOf(值[successIdx]));

我认为你的saveservice配置不适合插件,你应该设置:

  

jmeter.save.saveservice.response_message =假

答案 2 :(得分:0)

我认为你可能会遇到28426的众所周知的关键错误Performance Plugin