title: JMeter aggregate report does not aggregate in non-gui mode
body: <p>I have a JMeter test plan which is running two thread groups, with each thread group containing a controller and HTTP cookie manager. The controller is a custom controller, but I don't think this should affect JMeter's output.</p>
  
  <p>Outside the two thread groups, I have an Aggregate Report component. Here is a screenshot of my TestPlan:</p>
  
  <p><a href="https://i.stack.imgur.com/oeo4k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oeo4k.png" alt="test plan screenshot"></a></p>
  
  <p>If I run the test in GUI mode, as you would expect, the Aggregate Report creates an.... aggregate report. That is, the results are aggregated on my test/sample labels, and I get one row for each test, and a range of attributes, as below:</p>
  
  <p><a href="https://i.stack.imgur.com/LovGx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LovGx.png" alt="Aggregate report in the gui window"></a></p>
  
  <p>I also have configured this Aggregate Report component to output to a file, by entering a filename in the "Filename" section, and pressing the "Configure" button and checking the attributes I'd like to be output (I've kept it simple for now with just the label, elapsed time and response code).</p>
  
  <p><a href="https://i.stack.imgur.com/Lkcli.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lkcli.png" alt="Aggregate report config with the filename and attributes"></a></p>
  
  <p>When I run my test from non-gui mode, this output file is the only way to view the results. However, the output file is rather useless and it does not aggregate the results, but instead gives me output similar to the usual jtl output, i.e. it doesn't aggregate the results at all. Pretty useless. Here is the top few lines of my output file, you can clearly see they are not aggregated:</p>
  
  <pre><code>778,HRLogin,200
  426,HRLogin,200
  784,HRLogin,200
  ...
  </code></pre>
  
  <p>So, the obvious question, am I doing something wrong here? Why is my aggregate report output not an aggregate report? Surely JMeter has a way for producing aggregate output in non-gui mode, without me adding any plug-in or extensions. For the record I need to script this process at some point, so opening a JTL in gui mode is not acceptable, I need this entire process to occur within non-gui JMeter and scripts.</p>
  
  <p>Thanks!</p>