3
votes

After the build is completed, in the performance Trend report error column displays 100% error whereas the HTTP Response code is 200 (Successful)

Expected Result: That should be 0% error in error column.

We have performance plugin 1.13 in jenkins 1.607

enter image description here

My .jtl file contains:

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

Console output:

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

Can anyone solve this for Jenkins?

3
any feedback on my answer ? if it was helpful it should be accepted and possibly upvoted so that it's helpful to others – UBIK LOAD PACK
I cant update my jtl file every time manually, that is auto created by jenkins after executing the tests. Even I also tried this by grabbing latest code of performance plugin from git repo. In order to resolve this issue, I moved my reports to xml from jtl for 100% error issues and for URI issue I downgraded my performance plugin version to 1.11. Thanks. – Shadman
how is your csv file generated, that's not standard jmeter output as I explained. Can you show content of your jmeter.properties and user.properties I think I know now where your problem comes from – UBIK LOAD PACK

3 Answers

1
votes

It seems that it is due to a defect in Performance Plugin version 1.13.

You may use Performance Plugin version 1.9 or below and let us know if this resolves your issue.

1
votes

Your jtl file is wrong for the plugin from :

So this leads to failure of parsing this value to a boolean by this code:

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

I think your configuration of saveservice is not well suited for the plugin, you should set:

jmeter.save.saveservice.response_message=false

0
votes

I think you may be facing well-known critical bug 28426 of Performance Plugin.