The GUI as steps

A plan can be built in two ways: in JMeter's window, where the tree, the property panels and the result viewers are, or in a text editor, where this course builds it. The window is the easier place to learn the elements and the only place to record a test or look at one response at a time. This lesson maps the panels to the properties the earlier lessons ran, as steps, and shows why the window does not open in this container.

The window, as steps

The panel and the file

Every field of a panel is a property of the file. The table gives the ones this part used, so that a reader who has the window open can find them.

The panel field and its property
In the windowIn the file
Thread Group → Number of ThreadsThreadGroup.num_threads
Thread Group → Ramp-Up PeriodThreadGroup.ramp_time
Thread Group → Loop CountLoopController.loops
Thread Group → Action to take after a sampler errorThreadGroup.on_sample_error
HTTP Request → PathHTTPSampler.path
HTTP Request → Follow RedirectsHTTPSampler.follow_redirects
HTTP Request → Use KeepAliveHTTPSampler.use_keepalive
HTTP Header Manager → a rowa Header element with Header.name and Header.value
Response Assertion → Ignore StatusAssertion.assume_success
Simple Data Writer → Filenamefilename of the ResultCollector

What this container answers instead

A container has no display, and the window is a Swing program. The command that opens it here is the one of the JMeter archive itself, with the headless flag set, and it stops before a window exists:

java -Djava.awt.headless=true -jar /opt/jmeter/bin/ApacheJMeter.jar 2>&1 | tail -5; echo "exit status: ${PIPESTATUS[0]}"

& increase Java Heap to meet your test requirements:
   Modify current env variable HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" in the jmeter batch file
Check : https://jmeter.apache.org/usermanual/best-practices.html
================================================================================
An error occurred: Fontconfig head is null, check your fonts or fonts configuration
exit status: 1

The heap advice and the best-practices link are printed before every GUI start. Then the toolkit gives up on the fonts, because there is no font server behind a display that does not exist. The line is a real error of this image and not a property of JMeter: on a desktop the same archive opens the window.

The steps above are therefore shown and not run, and the rest of the course does not need them. A plan that a reader builds in the window is the file the next lessons edit by hand, and every command in the course is one a headless run uses.

Related

Article author: Arthur Isaev