Upgrade to Apache JMeter 5.1: You would have listened to my podcast featuring Apache JMeter 5.0, if not you can listen to it here. Couple weeks ago Apache has released its newer version of JMeter with new features, enhancements, and bug fixes. If you are working on Apache JMeter, read further to decide whether you need to upgrade from older version to JMeter 5.1 or not.
Table of Contents
TLDR
What’s new in Apache JMeter 5.1?
Brand new Tools menu. Tools menu comprises of Heap Dump, Thread Dump, Function Helper Dialog, Compile JSR223 Test Elements etc as shown below. Notable entry is Import from cURL (alpha).
Another UI change is in the Templates. Now Recording template has parameters to fill before you hit record.
Import from cURL (alpha)
Here is the GIF demo of how Import from cURL expedites JMeter test plan creation.
JDBC Connection Configuration
Now you can init the SQL statements in the JDBC Connection Configuration. There are lots of bugs have been fixed. You can check all the details here.
Notable update is httpclient/httpmime 4.5.7 from httpclient/httpmime 4.5.6.
Under Live Reporting and Results: you can generate JSON file which consists of load stats using -e or -g.
Here is the sample command which generates the stats in JSON file.
jmeter -n -t <yourJMXfile> -l <yourLogfile.jtl> -e -o <yourOutputFolder>
jmeter command
{ "Example Request" : { "transaction" : "Example Request", "sampleCount" : 30, "errorCount" : 0, "errorPct" : 0.0, "meanResTime" : 43.333333333333336, "minResTime" : 29.0, "maxResTime" : 98.0, "pct1ResTime" : 64.0, "pct2ResTime" : 82.04999999999998, "pct3ResTime" : 98.0, "throughput" : 22.404779686333082, "receivedKBytesPerSec" : 21.22473627707244, "sentKBytesPerSec" : 8.729987397311426 }, "Total" : { "transaction" : "Total", "sampleCount" : 30, "errorCount" : 0, "errorPct" : 0.0, "meanResTime" : 43.333333333333336, "minResTime" : 29.0, "maxResTime" : 98.0, "pct1ResTime" : 64.0, "pct2ResTime" : 82.04999999999998, "pct3ResTime" : 98.0, "throughput" : 22.404779686333082, "receivedKBytesPerSec" : 21.22473627707244, "sentKBytesPerSec" : 8.729987397311426 } }
-f command to force delete the existing results file/folder if present.
After passing -f command, you do not get any error. Your test plan will run smooth.
This search and replace bug has been fixed. As I mentioned earlier, there are lots of bugs have been fixed.
Conclusion
I would suggest you