public abstract class BaseSampler<T extends BaseSampler<T>> extends TestElementContainer<T,BaseSampler.SamplerChild> implements DslSampler
In particular, it specifies that samplers are BaseThreadGroup.ThreadGroupChild and TestElementContainer containing BaseSampler.SamplerChild.
For an example of an implementation of a sampler check DslHttpSampler.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseSampler.SamplerChild
Test elements which can be nested as children of a sampler in JMeter, should implement this
interface.
|
childrenguiClass, name| Modifier | Constructor and Description |
|---|---|
protected |
BaseSampler(String name,
Class<? extends org.apache.jmeter.gui.JMeterGUIComponent> guiClass) |
| Modifier and Type | Method and Description |
|---|---|
T |
children(BaseSampler.SamplerChild... children)
Allows specifying children test elements for the sampler, which allow for example extracting
information from response, alter request, assert response contents, etc.
|
buildTreeUnderbuildConfiguredTestElement, buildTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildTreeUnder, showInGuipublic T children(BaseSampler.SamplerChild... children)
children in class TestElementContainer<T extends BaseSampler<T>,BaseSampler.SamplerChild>children - list of test elements to add as children of this sampler.Copyright © 2024. All rights reserved.