public class PercentController extends BaseController<PercentController>
Internally this uses JMeter Throughput Controller (which has misleading name) with percent executions option.
The execution of elements is deterministic, holding execution until percentage is reached. For example, if the percent is 25, the execution of child elements will look like: [skip, skip, skip, run, skip, skip, skip, run, ...].
Execution of children is always run as an atomic set (each time/iteration either all or none of the children are run).
| Modifier and Type | Class and Description |
|---|---|
static class |
PercentController.CodeBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
percent |
protected boolean |
perThread |
childrenguiClass, name| Constructor and Description |
|---|
PercentController(String percent,
List<BaseThreadGroup.ThreadGroupChild> children) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jmeter.testelement.TestElement |
buildTestElement() |
PercentController |
perThread()
Specifies to apply percent control per thread instead of shared by all threads.
|
PercentController |
perThread(boolean enable)
Same as
perThread() but allowing to enable or disable it. |
childrenbuildTreeUnderbuildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuiprotected String percent
protected boolean perThread
public PercentController(String percent, List<BaseThreadGroup.ThreadGroupChild> children)
public PercentController perThread()
This might be useful when a more deterministic behavior is required per thread, and each thread execution has to be controlled, instead of relying on in general threads execution percentage.
public PercentController perThread(boolean enable)
perThread() but allowing to enable or disable it.
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.perThread()protected org.apache.jmeter.testelement.TestElement buildTestElement()
buildTestElement in class BaseTestElementCopyright © 2023. All rights reserved.