Class DslTransactionController
- 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<DslTransactionController>
-
- us.abstracta.jmeter.javadsl.core.controllers.DslTransactionController
-
- All Implemented Interfaces:
DslController,DslTestElement,BaseThreadGroup.ThreadGroupChild
public class DslTransactionController extends BaseController<DslTransactionController>
Allows specifying JMeter transaction controllers which group different samples associated to same transaction.This is usually used when grouping different steps of a flow, for example group requests of login flow, adding item to cart, purchase, etc. It provides aggregate metrics of all it's samples.
- Since:
- 0.14
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDslTransactionController.CodeBuilder
-
Field Summary
Fields Modifier and Type Field Description protected booleangenerateParentSampleprotected booleanincludeTimers-
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 DslTransactionController(String name, List<BaseThreadGroup.ThreadGroupChild> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.jmeter.testelement.TestElementbuildTestElement()DslTransactionControllergenerateParentSample()Specifies to create a sample result as parent of children samplers.DslTransactionControllergenerateParentSample(boolean enable)Same asgenerateParentSample()but allowing to enable or disable it.DslTransactionControllerincludeTimersAndProcessorsTime()Specifies to include time spent in timers and pre- and post-processors in sample results.DslTransactionControllerincludeTimersAndProcessorsTime(boolean enable)Same asincludeTimersAndProcessorsTime()but allowing to enable or disable it.-
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
-
-
-
-
Constructor Detail
-
DslTransactionController
public DslTransactionController(String name, List<BaseThreadGroup.ThreadGroupChild> children)
-
-
Method Detail
-
includeTimersAndProcessorsTime
public DslTransactionController includeTimersAndProcessorsTime()
Specifies to include time spent in timers and pre- and post-processors in sample results.- Returns:
- the controller for further configuration or usage.
- Since:
- 1.0
-
includeTimersAndProcessorsTime
public DslTransactionController includeTimersAndProcessorsTime(boolean enable)
Same asincludeTimersAndProcessorsTime()but allowing to enable or disable it.This is helpful when the resolution is taken at runtime.
- Parameters:
enable- specifies to enable or disable the setting. By default, it is set to false.- Returns:
- the controller for further configuration or usage.
- Since:
- 0.29
- See Also:
includeTimersAndProcessorsTime()
-
generateParentSample
public DslTransactionController generateParentSample()
Specifies to create a sample result as parent of children samplers.It is useful in some scenarios to get transaction sample results as parent of children samplers to focus mainly in transactions and not be concerned about each particular request. Enabling parent sampler helps in this regard, only reporting the transactions in summary reports, and not the transaction children results.
- Returns:
- the controller for further configuration or usage.
- Since:
- 1.0
-
generateParentSample
public DslTransactionController generateParentSample(boolean enable)
Same asgenerateParentSample()but allowing to enable or disable it.This is helpful when the resolution is taken at runtime.
- Parameters:
enable- specifies to enable or disable the setting. By default, it is set to false.- Returns:
- the controller for further configuration or usage.
- Since:
- 0.29
- See Also:
generateParentSample()
-
buildTestElement
protected org.apache.jmeter.testelement.TestElement buildTestElement()
- Specified by:
buildTestElementin classBaseTestElement
-
-