Customise Request Summary Legends

In general, the “Request Summary” of JMeter HTML Report has a Pie Chart with “OK” and “KO” legends. These two legends show the pass and fail percentage of the total request executed during the test.

OK stands for Success and KO stands for Failure

Request Summary with KO and OK
Figure 01: Default Request Summary

But, there is no such valid meaning of KO here. And this makes many clients confused when they read the test report. So, it is better to represent OK and KO by some meaningful names like Pass or Fail, Success or Failure etc.

Steps to Customise Request Summary Legends:

Step 1: Go to bin -> report-template -> content -> js folder inside the JMeter directory.

dashboard-js-fmkr File Location
Figure 02: dashboard.js.fmkr File Location

Step 2: Open file “dashboard.js.fmkr” using Notepadd++.  An illustration is shown below:

Step 3: Search for the lines “label” : “KO”, and “label” : “OK”, as illustrated below:

dashboard-js-fmkr File
Figure 03: dashboard-js-fmkr File

Step 4: Change KO and OK in the above lines to Fall and Pass or any appropriate value.

Changes in dashboard-js-fmkr file
Figure 04: Changes in dashboard-js-fmkr File

Note: Only do the changes in these two words. If you change any other things, you may land in some problems.

Step 5: Save the file and restart the JMeter.

Step 6: Run the test and open the report. You will get the Request Summary Pie Chart below:

Request Summary with Pass and Fail
Figure 05: Customise Request Summary

You may be interested:

  1. Free JMeter Tutorial
  2. JMeter Tips and Tricks

Leave a Comment