Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to View JMeter Test Results in Real-Time

DZone's Guide to

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 ·
Free Resource

SignalFx is the only real-time cloud monitoring platform for infrastructure, microservices, and applications. The platform collects metrics and traces across every component in your cloud environment, replacing traditional point tools with a single integrated solution that works across the stack.

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.

SignalFx is built on a massively scalable streaming architecture that applies advanced predictive analytics for real-time problem detection. With its NoSample™ distributed tracing capabilities, SignalFx reliably monitors all transactions across microservices, accurately identifying all anomalies. And through data-science-powered directed troubleshooting SignalFx guides the operator to find the root cause of issues in seconds.

Topics:
cli ,gui ,jmeter ,yaml ,performance

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}