Bug 47940

Summary: [Patch] Module controller incorrectly create the replacement Sub Tree
Product: JMeter - Now in Github Reporter: benoit.wiart
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 2.3.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch

Description benoit.wiart 2009-10-05 12:13:19 UTC
The module controller incorrectly re-create the linked controller during the JMeter#convertSubTree step leading to erroneous scenario.

For example if we have a scenario like
TG1
	Transaction Controller
		Sampler 1
		Sampler 2
		Sampler 3

TG 2
	Module Controller (TG 1 > Transaction Controller)

Note that the Transaction Controller could be repladec by any controller (IfController, etc...)


After the JMeter#convertSubTree step, the resulting tree for TG2 will be :
TG 2 {
	Module Controller {
		Transaction Controller {}
		Sampler 1{}
		Sampler 2{}
		Sampler 3{}
	}
}
Here the samplers and the transaction controller are sibling nodes

The correct tree should be :
TG 2 {
	Module Controller {
		Transaction Controller {
			Sampler 1{}
			Sampler 2{}
			Sampler 3{}
		}
	}
}
Where the samplers are child of the Transaction controller

Patch will follow
Comment 1 benoit.wiart 2009-10-05 12:25:18 UTC
Created attachment 24345 [details]
Patch

The patch provided pass the correct subtree to the ModuleController#createSubTree

Benoit Wiart
Ubik Ingénierie
http://www.ubik-ingenierie.com
Comment 2 Sebb 2009-11-14 15:25:07 UTC
Thanks:

URL: http://svn.apache.org/viewvc?rev=836291&view=rev
Log:
Bug 47940 - Module controller incorrectly creates the replacement Sub Tree
Comment 3 The ASF infrastructure team 2022-09-24 20:37:44 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2292