Bug 39734 - Aggregate Graph listener shared after copy/paste operation
Summary: Aggregate Graph listener shared after copy/paste operation
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: Other Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-06 13:44 UTC by Nikolay Diakov
Modified: 2007-05-07 08:58 UTC (History)
0 users



Attachments
Suggested patch (2.27 KB, patch)
2007-05-07 04:55 UTC, Alf Hogemark
Details | Diff
Test plan to reproduce the problem with (7.67 KB, application/octet-stream)
2007-05-07 04:58 UTC, Alf Hogemark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Diakov 2006-06-06 13:44:44 UTC
I have two thread groups. I assigned an Aggregate Graph to the first one. I 
then copied the Aggregate Graph to the second one. I run the two groups one 
after another. The second group reports to the first graph ignoring the copy. 
After I deleted the second aggregate graph and made a new one, the second 
thread group started reporting properly.

I guess some pointer was left in the copy so it refered to the implementation 
of the original.

Cheers,
  Nik
Comment 1 Sebb 2006-06-06 17:21:20 UTC
I have managed to reproduce this.

It seems that a work-round is to Run/Clear All (Control+E) before running the 
test. 

Does that work for you too?
Comment 2 Sebb 2006-06-06 17:34:14 UTC
Another work-round (for me at least) is to select the pasted copy before 
starting the test.

The same behaviour applies to the Table Listener, and the Tree View, and the 
new Summary Report, so I guess it's a generic problem.
Comment 3 Alf Hogemark 2007-05-07 04:55:32 UTC
Created attachment 20137 [details]
Suggested patch

This patch fixes the problem, by using the "addComponent" method to insert the
item into the tree. This makes sure that the GUI and TestElement are in sync.
Comment 4 Alf Hogemark 2007-05-07 04:58:32 UTC
Created attachment 20138 [details]
Test plan to reproduce the problem with

Open the test plan.
Select the "View Results in Table" node in the tree, copy it, and then paste it
as a child of the "B" sampler.
Now run the test plan.
Before the suggested patch is applied, two samples appears in the table
listener under "A".
After the patch is applied, one sample appears in table listener under "A", and
one sample appears in table listener under "B".
Comment 5 Sebb 2007-05-07 08:58:40 UTC
Thanks - applied to SVN in r535913
Comment 6 The ASF infrastructure team 2022-09-24 20:37:37 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1740