Class Iterate

All Implemented Interfaces:
org.citrusframework.common.Described, org.citrusframework.common.Named, org.citrusframework.Completable, org.citrusframework.container.TestActionContainer, org.citrusframework.TestAction, org.citrusframework.TestActorAware

public class Iterate extends AbstractIteratingActionContainer
Class executes nested test actions in loops. Iteration continues as long as looping condition evaluates to true.

Each loop an index variable is incremented. The index variable is accessible inside the nested test actions as normal test variable. Iteration starts with index=1 and increments with a default step=1.

  • Constructor Details

  • Method Details

    • executeIteration

      public void executeIteration(org.citrusframework.context.TestContext context)
      Description copied from class: AbstractIteratingActionContainer
      Execute embedded actions in loop.
      Specified by:
      executeIteration in class AbstractIteratingActionContainer
      Parameters:
      context - Test context holding variable information.
    • getStep

      public int getStep()
      Gets the step.
      Returns:
      the step