Class TestElementContainer<T extends TestElementContainer<T,C>,C extends DslTestElement>
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.testelements.TestElementContainer<T,C>
-
- Type Parameters:
C- is type of test elements that can be nested by this class.Check
DslTestPlanfor an example.
- All Implemented Interfaces:
DslTestElement
- Direct Known Subclasses:
BaseController,BaseSampler,BaseThreadGroup,DslTestPlan
public abstract class TestElementContainer<T extends TestElementContainer<T,C>,C extends DslTestElement> extends BaseTestElement
Abstracts logic forDslTestElementthat can nest other test elements.- Since:
- 0.1
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTestElementContainer(String name, Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass, List<C> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jorphan.collections.HashTreebuildTreeUnder(org.apache.jorphan.collections.HashTree parent, BuildTreeContext context)Builds the JMeter HashTree for this TestElement under the provided tree node.protected Tchildren(C... children)-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
buildConfiguredTestElement, buildTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGui
-
-
-
-
Field Detail
-
children
protected final List<C extends DslTestElement> children
-
-
Method Detail
-
buildTreeUnder
public org.apache.jorphan.collections.HashTree buildTreeUnder(org.apache.jorphan.collections.HashTree parent, BuildTreeContext context)Description copied from interface:DslTestElementBuilds the JMeter HashTree for this TestElement under the provided tree node.- Specified by:
buildTreeUnderin interfaceDslTestElement- Overrides:
buildTreeUnderin classBaseTestElement- Parameters:
parent- the node which will be the parent for the created tree.context- context information which contains information shared by elements while building the test plan tree (eg: adding additional items to test plan when a particular protocol element is added).- Returns:
- The tree created under the parent node.
-
-