Hi!

I am in a strong need of having a Controller that allows to choose a
certain module from an external file, something like a hybrid of Module and
Include Controllers (I work with a complex microservices-based system that
requires organizing a nicely structured and convenient in usage test
framework). I have found a few requests for the similar feature here and
there, an old enhancement ticket at bugzilla: id=60264, but no action on
that. So I decided to try implementing it myself.

I am new to jmeter development, so might miss some obvious points. On the
first sight it looks like the desired controller should be a combination of
Module and Include controller. How I see it roughly -
* gui element should have includePanel similar to Include controller, and
treePanel+modulePanel from ModuleController, no expandButton as it's not
applicable for external tree.
* contoller's clone() loads a subtree/ sub test element/s from the selected
module of the external file
* gui reinitialize() method takes care of rebuilding moduleToRunTreeModel
gui element rendering the tree from external file - basically, it's a
representation of a subtree?
* on create element the treePanel is hidden
* on modify element, with adding change listener to includePanel, treePanel
becomes visible after external jmx file selected, and renders the external
jmx tree (if proper, otherwise raise error)
* the final/effective tree is being resolved only on run by engine?.. -
controller's resolveReplacementSubTree() should take care by that moment of
having a subtree set and selectedNode defined


First of all I would like to make sure there are no core pitfalls that
prevents this solution from implementation (I assume there might have been
a decent reason why it was not implemented over all these years?), so being
a novice I do not waste time trying to solve the problem that is hard to
solve by jmeter experts.

And then I would appreciate any hints / advice on what are the key
functional points I have to take care of to implement this kind of a
controller.

Thanks in advance!
//Lena

Reply via email to