JMeter 性能插件报告始终在 200 成功响应代码上显示 100% 的错误
JMeter performance plugin report always showing 100% of errors on 200 success response code
构建完成后,性能趋势报告错误栏显示100%错误,而HTTP响应代码为200(成功)
预期结果:错误列中的错误率应该为 0%。
我们在 jenkins 1.607
中有 performance plugin 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
谁能为 Jenkins 解决这个问题?
我认为您可能面临众所周知的严重错误 28426 of Performance Plugin。
看来是Performance Plugin 1.13版本的缺陷造成的。
您可以使用 Performance Plugin 版本 1.9 或更低版本,如果这能解决您的问题,请告诉我们。
您的 jtl 文件对于来自以下插件的插件是错误的:
所以这导致无法通过此代码将此值解析为布尔值:
sample.setSuccessful(Boolean.valueOf(values[successIdx]));
我觉得你的saveservice配置不太适合这个插件,你应该设置:
jmeter.save.saveservice.response_message=false
构建完成后,性能趋势报告错误栏显示100%错误,而HTTP响应代码为200(成功)
预期结果:错误列中的错误率应该为 0%。
我们在 jenkins 1.607
中有 performance plugin 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
谁能为 Jenkins 解决这个问题?
我认为您可能面临众所周知的严重错误 28426 of Performance Plugin。
看来是Performance Plugin 1.13版本的缺陷造成的。
您可以使用 Performance Plugin 版本 1.9 或更低版本,如果这能解决您的问题,请告诉我们。
您的 jtl 文件对于来自以下插件的插件是错误的:
所以这导致无法通过此代码将此值解析为布尔值:
sample.setSuccessful(Boolean.valueOf(values[successIdx]));
我觉得你的saveservice配置不太适合这个插件,你应该设置:
jmeter.save.saveservice.response_message=false