There's was a regression in version JMeter 3.2,
I started to get a new warning when running in GUI mode,
For every file defined in listeners there's a popup alert warning of "file already exists"
How can I remove this warning?
If JMeter detects an error during a test, a message will be written to the log file. The log file name is defined in the log4j2.xml file (or using the -j option, see below). It defaults to jmeter.log, and will be found in the directory from which JMeter was launched.
If the special name LAST is used for the -t, -j or -l flags, then JMeter takes that to mean the last test plan that was run in interactive mode. Prior to version 2.5.1, JMeter invoked System.exit () when a CLI mode test completed.
To detect this situation, JMeter starts a new daemon thread just before it exits. This daemon thread waits a short while; if it returns from the wait, then clearly the JVM has not been able to exit, and the thread prints a message to say why.
To run JMeter, run the jmeter.bat (for Windows) or jmeter (for Unix) file. These files are found in the bin directory. After a short time, the JMeter GUI should appear. GUI mode should only be used for creating the test script, CLI mode (NON GUI) must be used for load testing
1 .- Go to the folder where .bat file that Starts Jmeter is located. (Commonly bin folder)
2 .- Find the file jmeter.properties and opened with a text editor.
3 .- Search the #resultcollector.action_if_file_exists property and uncomment it (removing the # at the beginning)
4.- As the documentarion says above this parameter (inside the same file), there are 3 posible values for this:
#ASK : Ask user
#APPEND : Append results to existing file
#DELETE : Delete existing file and start a new file
For example, I changed to overwrite the files everytime y run my tests would be:
resultcollector.action_if_file_exists=DELETE
5.- Save the file and reestar Jmetter
Good Luck!
You cannot remove this warning as of 3.2 version. It's not a regression , it is meant to avoid accidentally overwriting previous results.
Please raise an enhancement feature at :
EDIT:
You created:
It was implemented and will be available for 3.3.
A new property resultcollector.action_if_file_exists was introduced:
Used to control what happens when you start a test and have listeners that could overwrite existing result files
Possible values:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With