Search code examples
jmeterload-testingstress-testing

How to clear the results in Aggregate Report's table in JMeter automatically when executing the same test plan again?


So after executing a test run, I have the Aggregate Report's table filled with the data of the test plan that just finished running. Now, when I execute the test plan again, the results are getting added to this data in the Aggregate Report's table, but I would like the table data to be cleaned up before starting to display the results for the current run. Any way to do this?


Solution

  • Jmeter does not have a flag to do this automatically.

    Generally, you have to clear the results with CTRL+E (in windows) or from the file menu, under RUN > CLEAR or RUN > CLEAR ALL

    You might be able to write a beanshell script to clear the results everytime you execute the script.

    http://www.javadocexamples.com/java_examples/org/apache/jmeter/samplers/SampleListener/