Over a million developers have joined DZone.

How to View JMeter Test Results in Real-Time

The standard way to use JMeter is in non-GUI mode (CLI). By running in CLI mode, users save resources and ensure their test results are reliable. Using the JMeter GUI is meant only for test recording, development and debugging.

· Performance Zone

Evolve your approach to Application Performance Monitoring by adopting five best practices that are outlined and explored in this e-book, brought to you in partnership with BMC.

The standard way to use JMeter is in non-GUI mode (CLI). By running in CLI mode, users save resources and ensure their test results are reliable. Using the JMeter GUI is meant only for test recording, development and debugging.

The Problem: JMeter Limits Viewing Test Results in Real-Time

However, running JMeter in CLI mode may limit users who want to understand what is going on in their test in real-time, as CLI mode prevents incorporating Listeners during the test run. Any Listeners you happened to have in your test plan were probably GUI-mode-specific and don’t send anything to non-GUI mode.

Today, when users want to understand what happened in their test, they have to wait for the test to finish running. Then, they take the sample.jtl file that their load test produced, open the JMeter GUI and add their desired listener to the test plan. They can then load the sample.jtl file into the Listener and see the reports/graph.

adding listeners to jmeter gui

The Solution - Viewing Reports in Real-time with BlazeMeter and Taurus

BlazeMeter has a solution for you. By using Taurus, an open-source test automation tool, users can run their existing JMX scripts in CLI mode from the command line (or create new JMeter scripts in a simple YAML format) and view the test reports in real-time, as a means for ensuring everything is going smoothly.

Using Taurus and BlazeMeter for this purpose is available to everyone and doesn’t require signing up.

How to Run JMeter Tests on Taurus

For a detailed explanation, see here.

1. Install Taurus

2. To run your JMX file, use the bzt command and then the JMX path. For example, bzt example.jmx. After a few seconds, you will see the Taurus dashboard and its reports with KPIs and statistics.

taurus dashboard test results

See the detailed explanation for learning how to create a JMeter script with YAML and adding JMeter properties to your script.

Running your JMeter script on Taurus also enables you to view and analyze your test results on BlazeMeter. BlazeMeter reports are easy to use, compare different executions, monitor trends over time and enable collaboration. Type -report and your tests will be sent to BlazeMeter.

blazemeter dashboard test results reports

Congratulations! You can now easily run your JMeter scripts in CLI mode without using the JMeter GUI and still view all the analytics you need in a visualized and friendly format. Click here to go to Taurus and learn more.

Learn tips and best practices for optimizing your capacity management strategy with the Market Guide for Capacity Management, brought to you in partnership with BMC.

Topics:
cli ,gui ,jmeter ,yaml ,performance

Published at DZone with permission of Guy Salton, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}