Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMeter 3.2 Remove warning of "file already exists" when starting a test

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?

like image 519
user7294900 Avatar asked May 04 '17 07:05

user7294900


People also ask

What is the log file name for JMeter errors?

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.

How does JMeter know when to exit a test plan?

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.

Why does JMeter start a new daemon thread just before it exits?

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.

How do I run JMeter?

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


2 Answers

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!

like image 125
David Castro Avatar answered Oct 13 '22 20:10

David Castro


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 :

  • http://jmeter.apache.org/issues.html

EDIT:

You created:

  • https://bz.apache.org/bugzilla/show_bug.cgi?id=61068

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:

  • ASK : Ask user (default value that opens popup)
  • APPEND : Append results to existing file
  • DELETE : Delete existing file and start a new file
like image 37
UBIK LOAD PACK Avatar answered Oct 13 '22 19:10

UBIK LOAD PACK