Class AutoStopListener

    • Constructor Detail

      • AutoStopListener

        public AutoStopListener​(String name)
    • Method Detail

      • samplesMatching

        public AutoStopListener samplesMatching​(String regex)
        Specifies a regular expression used to filter samples for which specified conditions will be evaluated.

        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.

        Parameters:
        regex - specifies the regular expression to filter samples.
        Returns:
        the listener for further configuration or usage in a test plan.
      • when

        public AutoStopListener when​(AutoStopListener.AutoStopCondition condition)
        Specifies conditions that when met will cause the test plan execution to stop.
        Parameters:
        condition - specifies the condition that samples will be evaluated against.
        Returns:
        the listener for further configuration or usage in a test plan.
      • buildTreeUnder

        public org.apache.jorphan.collections.HashTree buildTreeUnder​(org.apache.jorphan.collections.HashTree parent,
                                                                      BuildTreeContext context)
        Description copied from interface: DslTestElement
        Builds the JMeter HashTree for this TestElement under the provided tree node.
        Specified by:
        buildTreeUnder in interface DslTestElement
        Overrides:
        buildTreeUnder in class BaseTestElement
        Parameters:
        parent - 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).
        Returns:
        The tree created under the parent node.