【发布时间】: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