public class ParallelController extends BaseController<ParallelController>
This element uses Parallel Controller plugin, check its documentation for more details.
By default, this element executes unlimited amount of parallel requests ang generate no additional sample result. Check provided methods to change this behavior.
| Modifier and Type | Class and Description |
|---|---|
static class |
ParallelController.CodeBuilder |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
protected boolean |
generateParent |
protected Integer |
maxThreads |
childrenguiClass, name| Constructor and Description |
|---|
ParallelController(String name,
List<BaseThreadGroup.ThreadGroupChild> children) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jmeter.testelement.TestElement |
buildTestElement() |
ParallelController |
generateParentSample()
Specifies whether to generate a sample result containing children elements results as sub
results.
|
ParallelController |
generateParentSample(boolean enable)
Same as
generateParentSample() but allowing to enable and disable the setting. |
ParallelController |
maxThreads(int maxThreads)
Allows limiting the number of threads used to execute children elements in parallel.
|
static ParallelController |
parallelController()
Same as
#parallelController(ThreadGroupChild...) but postponing children specification
to allow specifying additional settings first. |
static ParallelController |
parallelController(BaseThreadGroup.ThreadGroupChild... children)
Builds a Parallel Controller executing the given children elements in parallel.
|
static ParallelController |
parallelController(String name)
Same as
#parallelController(String, ThreadGroupChild...) but postponing children
specification to allow specifying additional settings first. |
static ParallelController |
parallelController(String name,
BaseThreadGroup.ThreadGroupChild... children)
Same as
#parallelController(ThreadGroupChild...) but allowing to set a name on
controller. |
childrenbuildTreeUnderbuildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuipublic static final String DEFAULT_NAME
protected boolean generateParent
protected Integer maxThreads
public ParallelController(String name, List<BaseThreadGroup.ThreadGroupChild> children)
public static ParallelController parallelController(BaseThreadGroup.ThreadGroupChild... children)
children - test elements to execute in parallel.public static ParallelController parallelController(String name, BaseThreadGroup.ThreadGroupChild... children)
#parallelController(ThreadGroupChild...) but allowing to set a name on
controller.
Setting the name of the controller is particularly useful when using
generateParentSample(boolean) to focus on transaction steps and properly identify
associated metrics.
name - is the label assigned to the Parallel Controller, which will appear in
collected metrics when generateParentSample(boolean) is used.children - test elements to execute in parallel.#parallelController(ThreadGroupChild...)public static ParallelController parallelController()
#parallelController(ThreadGroupChild...) but postponing children specification
to allow specifying additional settings first.#parallelController(ThreadGroupChild...)public static ParallelController parallelController(String name)
#parallelController(String, ThreadGroupChild...) but postponing children
specification to allow specifying additional settings first.#parallelController(String, ThreadGroupChild...)public ParallelController generateParentSample()
Take into consideration that when this option is enabled, then only the parallel controller sample result metrics will appear in metrics like summary results and similar. When generate parent sample is used, consider always using a name for the controller to properly identify it in collected metrics.
public ParallelController generateParentSample(boolean enable)
generateParentSample() but allowing to enable and disable the setting.
This is helpful when the resolution is taken at runtime.
enable - specifies to enable or disable the setting. By default, it is set to false.generateParentSample()public ParallelController maxThreads(int maxThreads)
maxThreads - number of threads to use. When not specified, no limit is set.protected org.apache.jmeter.testelement.TestElement buildTestElement()
buildTestElement in class BaseTestElementCopyright © 2023. All rights reserved.