apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.25k stars 2.09k forks source link

Generate Parent Sample not working in version 5.6.2 while in CLI Mode #6056

Open Magic358 opened 1 year ago

Magic358 commented 1 year ago

Expected behavior

In CLI Mode the output results in a jtl or csv file should be rolled up into a parent not all children when Generate Parent Sample is selected on a Transaction Controller. Note: This works fine in GUI Mode but not in CLI Mode?

Actual behavior

There is one parent and hundereds of children in the CLI Mode.

Steps to reproduce the problem

Create a Performance Script with the following:

  1. Add Thread with a number of users/threads
  2. Add Transaction Controller with Generate Parent ticked
  3. Add a http request
  4. Add a Regular Expression Extractor to pull out selected data from the first http request
  5. Add a ForEach Controller with a http request using whats coming out of the Regular Expression Extractor.

Note: This works perfectly when run in GUI mode, when in CLI Mode you get a lots of children and no parent.

JMeter Version

5.6.2

Java Version

1.8.0.331

OS Version

Microsoft Server 2012 R2 Standard

AntonyNathan commented 1 year ago

Hi Magic358 If you go to the user,properties file within the bin folder, you can see the below setting for the html report which is set to false by default. Try changing it to true and check if it fixes the issue. jmeter.reportgenerator.exporter.html.show_controllers_only=true