Class BaseThreadGroup<T extends BaseThreadGroup<T>>
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.testelements.TestElementContainer<T,BaseThreadGroup.ThreadGroupChild>
-
- us.abstracta.jmeter.javadsl.core.threadgroups.BaseThreadGroup<T>
-
- Type Parameters:
T- is the type of the thread group. Used for proper contract definition of fluent builder methods.
- All Implemented Interfaces:
DslTestElement,DslTestPlan.TestPlanChild,DslThreadGroup
- Direct Known Subclasses:
DslDefaultThreadGroup,DslSimpleThreadGroup,RpsThreadGroup,SimpleThreadGroupHelper,UltimateThreadGroupHelper
public abstract class BaseThreadGroup<T extends BaseThreadGroup<T>> extends TestElementContainer<T,BaseThreadGroup.ThreadGroupChild> implements DslThreadGroup
Contains common logic for all Thread Groups.- Since:
- 0.33
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaseThreadGroup.SampleErrorActionSpecifies an action to be taken by thread group when a sample error is detected.static interfaceBaseThreadGroup.ThreadGroupChildTest elements that can be added as direct children of a thread group in jmeter should implement this interface.
-
Field Summary
Fields Modifier and Type Field Description protected BaseThreadGroup.SampleErrorActionsampleErrorAction-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.TestElementContainer
children
-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
guiClass, name
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseThreadGroup(String name, Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass, List<BaseThreadGroup.ThreadGroupChild> children)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LoadTimeLinebuildLoadTimeline()This method is used byDslTestPlan.showTimeline()to get the timeline chart for this thread group.protected org.apache.jmeter.testelement.TestElementbuildTestElement()protected abstract org.apache.jmeter.threads.AbstractThreadGroupbuildThreadGroup()Tchildren(BaseThreadGroup.ThreadGroupChild... children)Allows specifying thread group children elements (samplers, listeners, post processors, etc.).TsampleErrorAction(BaseThreadGroup.SampleErrorAction sampleErrorAction)Specifies what action to be taken when a sample error is detected.-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.TestElementContainer
buildTreeUnder
-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
buildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGui
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface us.abstracta.jmeter.javadsl.core.DslTestElement
buildTreeUnder, showInGui
-
-
-
-
Field Detail
-
sampleErrorAction
protected BaseThreadGroup.SampleErrorAction sampleErrorAction
-
-
Constructor Detail
-
BaseThreadGroup
protected BaseThreadGroup(String name, Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass, List<BaseThreadGroup.ThreadGroupChild> children)
-
-
Method Detail
-
sampleErrorAction
public T sampleErrorAction(BaseThreadGroup.SampleErrorAction sampleErrorAction)
Specifies what action to be taken when a sample error is detected.- Parameters:
sampleErrorAction- specifies the action to be taken on sample error. By default, thread groups just ignores the error and continue with following sample in children elements.- Returns:
- the thread group for further configuration or usage.
- See Also:
BaseThreadGroup.SampleErrorAction
-
children
public T children(BaseThreadGroup.ThreadGroupChild... children)
Allows specifying thread group children elements (samplers, listeners, post processors, etc.).- Overrides:
childrenin classTestElementContainer<T extends BaseThreadGroup<T>,BaseThreadGroup.ThreadGroupChild>- Parameters:
children- list of test elements to add as children of the thread group.- Returns:
- the thread group for further configuration or usage.
-
buildTestElement
protected org.apache.jmeter.testelement.TestElement buildTestElement()
- Specified by:
buildTestElementin classBaseTestElement
-
buildThreadGroup
protected abstract org.apache.jmeter.threads.AbstractThreadGroup buildThreadGroup()
-
buildLoadTimeline
public LoadTimeLine buildLoadTimeline()
This method is used byDslTestPlan.showTimeline()to get the timeline chart for this thread group.- Returns:
- the timeline chart for this thread group or null if it is not supported.
- Since:
- 1.28
-
-