Class RepeatOnErrorUntilTrue

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 RepeatOnErrorUntilTrue extends AbstractIteratingActionContainer
Looping test container iterating the nested test actions in case an error occurred in one of them. Iteration continues until a aborting condition evaluates to true.

Number of iterations is kept in a index variable. The nested test actions can access this variable as normal test variable.

Between the iterations container can sleep automatically a given amount of time.

  • 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.
    • getAutoSleep

      @Deprecated(forRemoval=true) public Long getAutoSleep()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the duration this action sleeps in milliseconds.
      Returns:
      the autoSleep
    • getAutoSleepDuration

      public Duration getAutoSleepDuration()
      Returns:
      the duration this action sleeps in between retries