2
votes

I have a question about the results sampler. I have a test plan with two thread groups, that I want to run together. The problem is that I see in the results combination off the two thread groups.

I want that in the results listener of the first thread group only it's results will be displayed. and in the results of the second tread group only it's results will be displayed.

I put results listener under the debug sampler but it is not display anything. only the result listener in the test plan level, and it display combined data. can someone please advise? enter image description here

enter image description here

2

2 Answers

3
votes

The best practice is not to use any JMeter Listeners as they don't add any value and create unnecessary memory and especially disk IO overhead.

Instead of it I would suggest

  1. Giving your Thread Groups different names like Thread Group 1, Thread Group 2, etc.
  2. Running your test in command-line non-GUI mode like:

    jmeter -n -t test.jmx -l result.jtl
    

    Once done you will see threadName column in the .jtl results file, you can sort this on Thread Group name according to your requirements

    JMeter Thread Group Name


Alternative option is using Filter Results tool, it allows filtering the .jtl results file and including only those sample results which match the specified pattern

0
votes

Keep the listeners in each Thread Group. that way you are defining the scope of the listener to specific to the thread group.

Refer the following to know scoping rules: http://jmeter.apache.org/usermanual/test_plan.html#scoping_rules