Class 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
    • Field Detail

      • includeTimers

        protected boolean includeTimers
      • generateParentSample

        protected boolean generateParentSample
    • 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 as includeTimersAndProcessorsTime() 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 as generateParentSample() 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()