apache / apache/jmeter

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

Open
#6,271 2 comments 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### 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](https://github.com/apache/jmeter/files/15001088/jmeter.log)
[results.txt](https://github.com/apache/jmeter/files/15001089/results.txt)
[Slashdot.jmx.txt](https://github.com/apache/jmeter/files/15001095/Slashdot.jmx.txt)

### JMeter Version

5.6

### Java Version

JDK 17

### OS Version

MacOS and Linux (Fedora 39)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.