Class DslWhileController
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
-
- us.abstracta.jmeter.javadsl.core.testelements.TestElementContainer<T,BaseThreadGroup.ThreadGroupChild>
-
- us.abstracta.jmeter.javadsl.core.controllers.BaseController<DslWhileController>
-
- us.abstracta.jmeter.javadsl.core.controllers.DslWhileController
-
- All Implemented Interfaces:
DslController,DslTestElement,BaseThreadGroup.ThreadGroupChild
public class DslWhileController extends BaseController<DslWhileController>
Allows running part of a test plan until a condition is met.The condition is evaluated in each iteration before and after all children elements are executed. Keep this in mind in case you use conditions with side effects (like incrementing counters).
JMeter automatically creates a variable named
__jm__<controllerName>__idxwhich contains the index of the iteration starting with zero.- Since:
- 0.27
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDslWhileController.CodeBuilder
-
Field Summary
Fields Modifier and Type Field Description protected PropertyScriptBuilder<Boolean>conditionBuilder-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.TestElementContainer
children
-
Fields inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
guiClass, name
-
-
Constructor Summary
Constructors Constructor Description DslWhileController(String name, Class<? extends PropertyScriptBuilder.PropertyScript<Boolean>> scriptClass, List<BaseThreadGroup.ThreadGroupChild> children)DslWhileController(String name, String condition, List<BaseThreadGroup.ThreadGroupChild> children)DslWhileController(String name, PropertyScriptBuilder.PropertyScript<Boolean> script, List<BaseThreadGroup.ThreadGroupChild> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.jmeter.testelement.TestElementbuildTestElement()-
Methods inherited from class us.abstracta.jmeter.javadsl.core.controllers.BaseController
children
-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.TestElementContainer
buildTreeUnder
-
Methods inherited from class us.abstracta.jmeter.javadsl.core.testelements.BaseTestElement
buildConfiguredTestElement, buildTestElementGui, configureTestElement, durationToSeconds, loadBeanProperties, showAndWaitFrameWith, showFrameWith, showInGui, showTestElementGui
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface us.abstracta.jmeter.javadsl.core.DslTestElement
buildTreeUnder, showInGui
-
-
-
-
Field Detail
-
conditionBuilder
protected PropertyScriptBuilder<Boolean> conditionBuilder
-
-
Constructor Detail
-
DslWhileController
public DslWhileController(String name, String condition, List<BaseThreadGroup.ThreadGroupChild> children)
-
DslWhileController
public DslWhileController(String name, PropertyScriptBuilder.PropertyScript<Boolean> script, List<BaseThreadGroup.ThreadGroupChild> children)
-
DslWhileController
public DslWhileController(String name, Class<? extends PropertyScriptBuilder.PropertyScript<Boolean>> scriptClass, List<BaseThreadGroup.ThreadGroupChild> children)
-
-
Method Detail
-
buildTestElement
protected org.apache.jmeter.testelement.TestElement buildTestElement()
- Specified by:
buildTestElementin classBaseTestElement
-
-