public class DslSetupThreadGroup extends DslSimpleThreadGroup<DslSetupThreadGroup>
Usually this thread group is used to set the target environment in a predefined state, or to load information that is required in the rest of the test.
Take into consideration when loading information, as this is a separate thread group, jmeter variables (which are thread scoped) are not available in other thread groups. One way of passing information from one thread group to others can be JMeter Properties, or files. But use them with care, taking into consideration potentially parallel execution of threads in same thread group (or other thread groups).
Also consider that if you add multiple setup thread groups in a plan, they will run in parallel, before "regular" thread groups.
By default, the thread group will be configured with 1 thread and 1 iteration. You can change this with provided methods.
| Modifier and Type | Class and Description |
|---|---|
static class |
DslSetupThreadGroup.CodeBuilder |
DslSimpleThreadGroup.SimpleThreadGroupCodeBuilder<T extends org.apache.jmeter.testelement.TestElement>BaseThreadGroup.SampleErrorAction, BaseThreadGroup.ThreadGroupChilditerations, threadCountsampleErrorActionchildrenguiClass, name| Constructor and Description |
|---|
DslSetupThreadGroup(String name,
List<BaseThreadGroup.ThreadGroupChild> children) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jmeter.threads.AbstractThreadGroup |
buildSimpleThreadGroup() |
buildThreadGroup, children, iterations, threadCountbuildTestElement, sampleErrorActionbuildTreeUnderbuildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuipublic DslSetupThreadGroup(String name, List<BaseThreadGroup.ThreadGroupChild> children)
protected org.apache.jmeter.threads.AbstractThreadGroup buildSimpleThreadGroup()
buildSimpleThreadGroup in class DslSimpleThreadGroup<DslSetupThreadGroup>Copyright © 2024. All rights reserved.