Bug 47009

Summary: Lost of name's controller when insert a parent with same controller type
Product: JMeter - Now in Github Reporter: Milamber <milamber>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: milamber
Priority: P2    
Version: 2.3.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Proposal patch

Description Milamber 2009-04-09 08:27:54 UTC
For example, this test plan :

* Test plan
** Thread Group
*** MY CONTROLLER LABEL (type Transaction Controller)

I select MY CONTROLLER LABEL, right click, Insert Parent > Logic Controller > Transaction Controller.
(the same type of MY CONTROLLER LABEL)

Result :
* Test plan
** Thread Group
*** Transaction Controller
**** Transaction Controller (Lost name : MY CONTROLLER LABEL)

The problem appear only for two controller of same type.
If MY CONTROLLER LABEL are TC and I try to insert a Simple Controller Parent, there aren't problem, I don't lost name.

(on JMeter 2.3.2 and JMeter last svn release)
Comment 1 Milamber 2009-04-18 06:01:50 UTC
Created attachment 23509 [details]
Proposal patch


In org.apache.jmeter.gui.action.AddParent, the TreeModel isn't marked for update.
Comment 2 Sebb 2009-04-23 16:19:02 UTC
Thanks very much for the patch.

Applied to SVN:

URL: http://svn.apache.org/viewvc?rev=768089&view=rev
Log:
Bug 47009 - Insert parent caused child controller name to be reset
Comment 3 The ASF infrastructure team 2022-09-24 20:37:43 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2220