Last week, Apache released its major version of JMeter called Apache JMeter 3.0 with lots of enhancements and features. It was a long wait since JMeter 2.13. In this article, we are going see about noteworthy features of Apache JMeter 3.0.
Apache JMeter 3.0 Major changes
Firstly, there are major revamp done in the JMeter GUI. Icons have been redesigned and importantly the JMeter logo. Poll was conducted and the team decided the final JMeter logo as shown below.
Below is the latest GUI of JMeter 3.0. Note the icons and few extra objects at the top right corner.
View Results Tree got a Search option where you can search for a string with regular expressions and case sensitive options.
If you are working with modern web stack applications like AngularJS, ReactJS etc, then you need to use JSON processor. JMeter 3.0 has dedicated JSON extractor called JSON Path PostProcessor which is same as Regular Expression Extractor.
For the JSON path expression, please refer http://goessner.net/articles/JsonPath/
Below is the glimpse of XPath and JSONPath syntax.
|/||$||the root object/element|
|.||@||the current object/element|
|/||. or ||child operator|
|//||..||recursive descent. JSONPath borrows this syntax from E4X.|
|*||*||wildcard. All objects/elements regardless their names.|
|@||n/a||attribute access. JSON structures don’t have attributes.|
||||[,]||Union operator in XPath results in a combination of node sets. JSONPath allows alternate names or array indices as a set.|
|n/a||[start:end:step]||array slice operator borrowed from ES4.|
|||?()||applies a filter (script) expression.|
|n/a||()||script expression, using the underlying script engine.|
|()||n/a||grouping in Xpath|
HTTP sampler and HTTP Request defaults have an advanced tab where you can set below options.
Now you can generate dynamic graphs in HTML report using APDEX. By installing Grafana and InfluxDB, you can generate beautiful charts and graphs.
There is a migration to HTTPClient 4.5.2 which is not completed yet. Upon completion, there will be lots of improvements in JMeter.
There is a new pre-processor called Sample Timeout has been introduced. This will apply time out to the samplers which are in scope. By default, it is 10 seconds.
You can use DBCP2 pool in your JDBC request sampler.
Thread Group right click has more options: Start no pauses and Validate. Also, you can assign shortcuts and there is a shortcut to expand nodes.
Are you a Groovy scripter? You can use it immediately in JMeter through JSR223 elements.
There are lots of defects have been fixed and numerous improvements. You can see everything in detail in http://jmeter.apache.org/changes.html
You can download the latest version of JMeter in here http://jmeter.apache.org/download_jmeter.cgi. It requires Java 7 or later. Please take backup while upgrading.