JMeter 3.0, a big new version of the popular open-source measurement tool, was just announced by the Apache JMeter project. Several new additions and enhancements are included. This blog is intended for providing the feature knowledge that you need to know about JMeter 3.0. Get this online course Jmeter Training if you are a beginner where you will be learning the concepts such as load test, application performance, software latency, checking response time, etc.
JMeter’s First Major New Launch in Over a Decade
In April of 2004, JMeter 2.0 was launched and was the company’s first major release in over a decade. JMeter has moved to version 3.0 instead of launching version 2.14. What exactly does this imply?
A great release is more than a redesign of the existing version or a collection of bug fixes; it includes significant improvements like many new enhancements, a revision of the source code, key enhancements, and updates to the compatibility UI have also been included. To put it simply, it’s not only about preserving old models, but rather about making something wholly new. JMeter 3.0’s release is significant.
Catch up with JMeter 3.0
The below are the top five features of JMeter 3.0 that you should know about.
1. New user interface (UI) and user experience (UX)
When you open the app, the first thing you’ll find is the updated logo of Apache, and also the fact that JMeter’s logo has changed. On the user interface, you’ll even see a few new elements and icons. A new feature that displays the current evaluation elapsed time and the latest icons for previous components can be seen on the right side of the toolbar.
The test plan tree’s icons have also been updated, and they now look more refined and appealing.
The test plan tree with the different elements added is seen in this screenshot.
JMeter 3.0 also contains several UI/UX enhancements, including the following:
- HiDPI screens are endorsed.
- approximately 40 UI bugs are fixed
- In “HTTP Request,” a new “Advanced” tab was incorporated.
The advanced tab in “HTTP Request Defaults” and “HTTP Request” is shown below:
2. Improvements of Debugging and Scripting
These latest functionalities and updates make debugging and scripting JMX files with JMeter 3.0 far easier:
- Inserting elements with shortcuts – For advanced JMeter users, this makes for quicker scripting. These shortcuts – Ctrl+0, Ctrl+1, Ctrl+2,…Ctrl+9 – were contributed by BlazeMeter and enable you to instantly add elements to the test plan. It connects the Ctrl+ # keys to specific JMeter elements, allowing you to access the element with only one keypress.
- Latest feature validation – You can now execute a set of Thread Groups with one person, no delay, and one iteration with only one key. This aids in the debugging and development of your scripts.
- Latest Feature Search in the View Results Tree – This helps you to look in Responses/Headers/Request/Cookies/ for text or regexp. – It is extremely useful for debugging scripts that use correlation of dynamic values.
- HTTPClient library – The update to HTTPClient 4.5.2 increases JMeter’s performance in the following areas:
- The most significant improvement here is better Cookie management, that aids in the resolution of many problems that previously plagued JMeter models.
- Aid for Server Name Indication (SNI).
- Improved stale and keep-alive connection management (less NoHTTPResponseException)
- The compressed response service is now better. This is, in reality, a transformative change. Although there may be a few unforeseen differences in action, it is vastly superior to previous models and much more progressive.
- Furthermore, the library update has a major effect on JMeter Plugins. There was previously a library dispute with Selenium WebDriver research, but the conflict has been resolved in JMeter 3.0.
- The download of embedded resources has been improved (images, background, etc.) – There are plenty of resources available, and concurrent downloads are quicker.
3. Handling JSON Responses
Since most websites already use the JSON format for AJAX calls, you can’t stop scripts that use JSON modules. JMeter 3.0 introduces the JSONPath Post Processor component, which integrates JSON management into fundamental features. It uses the same JSONPath syntax for expressions like the one from the JMeter Plugins.
4. Reporting Enhancements
As you might be aware, posting load test results were a big problem in JMeter 2.x versions. To interpret the results, you had to generate and upload raw data in CSV or XML formats. JMeter lacked HTML reports with maps, which were available in several other load testing software. Tsung and Gatling, for example, have an HTML report generator built-in, but until now by default, JMeter does not endorse HTML reporting.
JMeter 3.0 includes several new monitoring features, including:
- HTML pages that generate dynamic graphs (Summary report, APDEX, and Graphs)
- A more readable period is shown by Summarizer.
- For the sampler list, regular expressions are supported by BackendListener.
- Dashboard for HTML Reporting.
Let’s take a look at the dashboard for generating reports, which can be done at any time from the results file or at the end of the testing. An Application Performance Index(APDEX) table, a request an error table, summary graph, a statistics table, and different zoomable charts are all included in the Report Dashboard. See the chart below.
If you’ve ever utilized the BackendListener, you’ll know that identifying samplers was a tricky task. Previously, all samplers in the JMeter 2.13 samplerList had to be described individually; now, samplers can be included in the list using the regex pattern. The readable length of the Summarizer would be useful when JMeter runs in non-GUI mode.
JMeter 3.0 is a major update that will revolutionize performance/load testing. After reading this post hopefully, you’ll be able to take advantage of all of the latest enhancements while still reducing the amount of time and money spent on load testing.
As previously stated, the latest version is more than just a bugfix release; it covers almost every aspect of load testing. The Groovy scripting language library for JSR223 modules, for instance, is now included in the JMeter collection, which is a huge benefit for JMeter users.
5. JMeter 3.0 Migration
Since the latest version of JMeter can only be run on Java 7 or higher, we recommend checking the current Java version before starting the migration to JMeter 3.0.
There are two simple methods for determining the Java version:
- Online verification – Open a new tab in your browser to validate online by typing http://www.java.com/en/download/installed.jsp and click the red button that says “Verify Java Version.” A dialogue box will appear if Java is activated in your browser’s settings, asking for approval to execute the Java applet. When you click the “Run” button, the Java version that is installed on your machine will be displayed.
- Run the command “java -version” from your “console/command prompt.” On the terminal output’s first line, look for the Java version “1.7.0_95,” with the Java version that is denoted by the second number. You will proceed to the next step if it is equal to or greater than 7.
If you have Java 6 or lower version installed, go to the official page of Java and adhere to the installation instructions.
You now have the Java edition that is compatible, you can proceed to build a current JMeter version dump. We do not suggest replacing and extracting the latest JMeter lib files into the original JMeter folder because incompatibility problems will arise. Separating them is both simpler and more efficient. After you’ve made a backup of your current JMeter, you can start installing the new version.
To get JMeter 3.0, go to this link http://jmeter.apache.org/download_jmeter.cgi and select the compiled JMeter binaries from the apache-jmeter-3.0.zip or apache-jmeter-3.0.tgz archives. After downloading, extract it to a new folder and run it.
If you have distributed JMeter instances, there are some more steps to complete. Before deploying JMeter 3.0 to remote servers, we suggest that you test all external plugins and JMX files, as some of them are incompatible with the latest edition.
You have seen the latest features like UI/UX, debugging and scripting function updates, JSON responses, JMeter report enhancements, migrating JMeter. This concludes the blog and we hope now you are aware of these five key aspects.
I am VarshaDutta Dusa, Working as a Senior Digital Marketing professional & Content writer in HKR Trainings. Having good experience in handling technical content writing and aspires to learn new things to grow professionally. I am expertise in delivering content on the market demanding technologies like ServiceNow Training, Oracle Service Bus Course, SQL Server DBA Course, Elasticsearch Course, Jmeter Course, Kibana, ServiceNow HR Service Management etc.