Class DslSimpleThreadGroup<T extends DslSimpleThreadGroup<T>>

    • Field Detail

      • threadCount

        protected int threadCount
      • iterations

        protected int iterations
    • Method Detail

      • iterations

        public T iterations​(int iterations)
        Allows specifying the number of iterations (times) to run the child elements of the thread group for each configured thread.
        Parameters:
        iterations - contains number of iterations to run in each thread of the thread group. When -1 is specified, then the thread group will have no limit of iterations and will run until some other condition (like on error and stopping on error is configured) stops the thread group. By default, this value is initialized to 1.
        Returns:
        the thread group for further configuration or usage.
      • threadCount

        public T threadCount​(int threadCount)
        Allows specifying the number of threads to run in parallel iterations of provided tasks.
        Parameters:
        threadCount - is the number of threads to use. By default is 1.
        Returns:
        the thread group for further configuration or usage.
      • children

        public T children​(BaseThreadGroup.ThreadGroupChild... children)
        Allows specifying thread group children elements (samplers, listeners, post processors, etc.).

        This method is just an alternative to the constructor specification of children, and is handy when you want to keep general thread group settings together and then specify children (instead of specifying children and at the end alternative settings like iterations).

        Overrides:
        children in class BaseThreadGroup<T extends DslSimpleThreadGroup<T>>
        Parameters:
        children - list of test elements to add as children of the thread group.
        Returns:
        the altered thread group to allow for fluent API usage.
      • buildSimpleThreadGroup

        protected abstract org.apache.jmeter.threads.AbstractThreadGroup buildSimpleThreadGroup()