public class AutoStopListener extends BaseTestElement implements DslListener
| Modifier and Type | Class and Description |
|---|---|
static class |
AutoStopListener.AggregatedConditionBuilder<T extends Comparable<?>> |
static class |
AutoStopListener.AutoStopCondition
Specifies a condition that when met, will make test plan execution to stop.
|
static class |
AutoStopListener.AutoStopConditionBuilder |
static class |
AutoStopListener.BaseAutoStopConditionBuilder |
static class |
AutoStopListener.CountMetricConditionBuilder |
static class |
AutoStopListener.ErrorsConditionBuilder |
static class |
AutoStopListener.MetricConditionBuilder |
static class |
AutoStopListener.TimeMetricConditionBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected List<AutoStopListener.AutoStopCondition> |
conditions |
protected Pattern |
regex |
protected TestStopper |
testStopper |
guiClass, name| Constructor and Description |
|---|
AutoStopListener(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.jmeter.testelement.TestElement |
buildTestElement() |
org.apache.jorphan.collections.HashTree |
buildTreeUnder(org.apache.jorphan.collections.HashTree parent,
BuildTreeContext context)
Builds the JMeter HashTree for this TestElement under the provided tree node.
|
AutoStopListener |
samplesMatching(String regex)
Specifies a regular expression used to filter samples for which specified conditions will be
evaluated.
|
AutoStopListener |
when(AutoStopListener.AutoStopCondition condition)
Specifies conditions that when met will cause the test plan execution to stop.
|
buildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshowInGuiprotected final List<AutoStopListener.AutoStopCondition> conditions
protected Pattern regex
protected TestStopper testStopper
public AutoStopListener(String name)
public AutoStopListener samplesMatching(String regex)
If a condition defines another regular expression, then this expression is ignored for such condition.
This is handy in case you want to define a set of conditions that apply only to a sub set of samples that share a common label structure. Eg: to samplers with same name but in different parts of test plan (e.g.: under different ifControllers).
For targeting a single sampler or all the samplers contained within a controller or thread group, prefer just placing the autoStop listener in the correct scope of the test plan.
regex - specifies the regular expression to filter samples.public AutoStopListener when(AutoStopListener.AutoStopCondition condition)
condition - specifies the condition that samples will be evaluated against.public org.apache.jorphan.collections.HashTree buildTreeUnder(org.apache.jorphan.collections.HashTree parent,
BuildTreeContext context)
DslTestElementbuildTreeUnder in interface DslTestElementbuildTreeUnder in class BaseTestElementparent - the node which will be the parent for the created tree.context - context information which contains information shared by elements while building
the test plan tree (eg: adding additional items to test plan when a particular protocol element
is added).protected org.apache.jmeter.testelement.TestElement buildTestElement()
buildTestElement in class BaseTestElementCopyright © 2024. All rights reserved.