T - is the type of the JMeter test element to be wrapped.public class TestElementWrapperHelper<T extends org.apache.jmeter.testelement.TestElement> extends Object
This logic can't be inherited by instances of TestElementWrapper since they need to
inherit from proper class in each case (BaseDslThreadGroup, DslSampler, etc) to properly
accommodate in the test plan and to inherit associated logic (eg: show in gui, children elements
handling, etc).
| Modifier and Type | Field and Description |
|---|---|
org.apache.jmeter.gui.JMeterGUIComponent |
guiComponent |
Map<String,Object> |
props |
T |
testElement |
| Constructor and Description |
|---|
TestElementWrapperHelper(T testElement,
org.apache.jmeter.gui.JMeterGUIComponent guiComponent) |
| Modifier and Type | Method and Description |
|---|---|
T |
buildTestElement()
Is used by
DslTestElement.buildTreeUnder(HashTree, BuildTreeContext) to build the
JMeter test plan tree for the wrapped element. |
void |
prop(String name,
Object value)
Is used by
TestElementWrapper.prop(String, Object) to add properties to a wrapper. |
static Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> |
solveGuiClass(org.apache.jmeter.testelement.TestElement testElement,
org.apache.jmeter.gui.JMeterGUIComponent guiComponent)
Is used by wrappers constructors to solve the final gui class to be used.
|
static String |
solveName(String name,
org.apache.jmeter.testelement.TestElement testElement,
org.apache.jmeter.gui.JMeterGUIComponent guiComponent)
Is used by wrappers constructors to solve the final name to be used.
|
public final T extends org.apache.jmeter.testelement.TestElement testElement
public final org.apache.jmeter.gui.JMeterGUIComponent guiComponent
public TestElementWrapperHelper(T testElement, org.apache.jmeter.gui.JMeterGUIComponent guiComponent)
public static String solveName(String name, org.apache.jmeter.testelement.TestElement testElement, org.apache.jmeter.gui.JMeterGUIComponent guiComponent)
name - is a potential name to use. If null then, test element's and gui
component's name are used.testElement - specifies a test element from where the name could be extracted when name
is null. If null then guiComponent name is used.guiComponent - specifies a gui component from where name can be extracted when other
options are null.public static Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> solveGuiClass(org.apache.jmeter.testelement.TestElement testElement, org.apache.jmeter.gui.JMeterGUIComponent guiComponent)
testElement - specifies a test element, if is a TestBean class then we know TestBeanGUI
should be used. Otherwise, check gui component or return null.guiComponent - specifies a gui component to be used when class can't be extracted from
test element (when is null).public void prop(String name, Object value)
TestElementWrapper.prop(String, Object) to add properties to a wrapper.name - specifies the name of the property.value - specifies the value associated to the property.public T buildTestElement()
DslTestElement.buildTreeUnder(HashTree, BuildTreeContext) to build the
JMeter test plan tree for the wrapped element.Copyright © 2023. All rights reserved.