jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Command-line mode doesn't stop and keeps running tests repeatedly

Open tmulle opened this issue 10 months ago • 2 comments

Expected behavior

When I run my test in the GUI it runs just fine.

My sample is just to hit slashot.org with 1 thread and 1 time.

Running in the GUI it runs once and then stops.

I am using this as a reproducer, my real test hits our web server to test REST endpoints.

Actual behavior

When I run my Slashot.jmx file from the command-line it never stops and just keeps running the same tests over and over.

Steps to reproduce the problem

Load the attached Test plan and run it in both the GUI and command-line.

Rename the Slashdot.jmx.txt to Slashdot.jmx I had to rename it to upload it.

Run with command line: jmeter -n -t Slashdot.jmx -l results.txt -e -o output

You can also see the results I get and then ultimately kill it with Ctrl-C.

It's like the command-line mode is ignoring my Thread Group settings since I said to use 1 thread for 1 count.

jmeter.log results.txt Slashdot.jmx.txt

JMeter Version

5.6

Java Version

JDK 17

OS Version

MacOS and Linux (Fedora 39)

tmulle avatar Apr 16 '24 18:04 tmulle

Just tried with 5.6.3 and the same issue.

tmulle avatar Apr 17 '24 14:04 tmulle

Jmeter5.4.1 works normal

 > jmeter -n -t Slashdot.jmx
Creating summariser <summary>
Created the tree successfully using Slashdot.jmx
Starting standalone test @ Thu Aug 08 10:12:32 CST 2024 (1723083152481)
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
summary +      1 in 00:00:01 =    0.7/s Avg:  1382 Min:  1382 Max:  1382 Err:     0 (0.00%) Active: 1 Started: 1 Finished: 0
summary =      1 in 00:00:01 =    0.7/s Avg:  1382 Min:  1382 Max:  1382 Err:     0 (0.00%)
Tidying up ...    @ Thu Aug 08 10:12:34 CST 2024 (1723083154186)
... end of run

linvaux avatar Aug 08 '24 02:08 linvaux