Bug 62299

Summary: Duplicate copies embedded elements twice when expanded
Product: JMeter Reporter: Felix Schumacher <felix.schumacher>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal CC: p.mouawad
Priority: P2    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Felix Schumacher 2018-04-13 18:24:55 UTC
When duplicating an element with exapanded children like the following element structure:

 + Sampler A
   - Child A
   Sampler B

Duplicating the structure will result in

 + Sampler A
   - Child A
   Sampler B
 + Sampler A
   - Child A <--- (this will actually not be expanded)
   Child A   <--- (this is an unexpected copy and on the wrong level)
   Sampler B
Comment 1 Philippe Mouawad 2018-12-26 14:30:52 UTC
Hi Felix,
Do you still reproduce this issue ?
I am not able to do it in current nightly build.

If you do, could you attach a simple test plan ?
Comment 2 Felix Schumacher 2018-12-28 10:44:45 UTC
Yes, I can still reproduce it.

The important part is, that the structure has to be expanded.

I believe, that this causes the child to be selected twice and therefore copied twice. Whereas when the structure is not expanded, the child will not be selected explicitly and copied once, only.