T - is the type of the thread group. Used for proper contract definition of fluent builder
methods.public abstract class DslSimpleThreadGroup<T extends DslSimpleThreadGroup<T>> extends BaseThreadGroup<T>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DslSimpleThreadGroup.SimpleThreadGroupCodeBuilder<T extends org.apache.jmeter.testelement.TestElement> |
BaseThreadGroup.SampleErrorAction, BaseThreadGroup.ThreadGroupChild| Modifier and Type | Field and Description |
|---|---|
protected int |
iterations |
protected int |
threadCount |
sampleErrorActionchildrenguiClass, name| Modifier | Constructor and Description |
|---|---|
protected |
DslSimpleThreadGroup(String name,
Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass,
List<BaseThreadGroup.ThreadGroupChild> children) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.jmeter.threads.AbstractThreadGroup |
buildSimpleThreadGroup() |
protected org.apache.jmeter.threads.AbstractThreadGroup |
buildThreadGroup() |
T |
children(BaseThreadGroup.ThreadGroupChild... children)
Allows specifying thread group children elements (samplers, listeners, post processors, etc.).
|
T |
iterations(int iterations)
Allows specifying the number of iterations (times) to run the child elements of the thread
group for each configured thread.
|
T |
threadCount(int threadCount)
Allows specifying the number of threads to run in parallel iterations of provided tasks.
|
buildTestElement, sampleErrorActionbuildTreeUnderbuildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuiprotected DslSimpleThreadGroup(String name, Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass, List<BaseThreadGroup.ThreadGroupChild> children)
public T iterations(int iterations)
iterations - contains number of iterations to run in each thread of the thread group. When
-1 is specified, then the thread group will have no limit of iterations and
will run until some other condition (like on error and stopping on error is
configured) stops the thread group. By default, this value is initialized to
1.public T threadCount(int threadCount)
threadCount - is the number of threads to use. By default is 1.public T children(BaseThreadGroup.ThreadGroupChild... children)
This method is just an alternative to the constructor specification of children, and is handy when you want to keep general thread group settings together and then specify children (instead of specifying children and at the end alternative settings like iterations).
children in class BaseThreadGroup<T extends DslSimpleThreadGroup<T>>children - list of test elements to add as children of the thread group.protected org.apache.jmeter.threads.AbstractThreadGroup buildThreadGroup()
buildThreadGroup in class BaseThreadGroup<T extends DslSimpleThreadGroup<T>>protected abstract org.apache.jmeter.threads.AbstractThreadGroup buildSimpleThreadGroup()
Copyright © 2023. All rights reserved.