Package org.citrusframework.container
Class RepeatOnErrorUntilTrue
java.lang.Object
org.citrusframework.actions.AbstractTestAction
org.citrusframework.container.AbstractActionContainer
org.citrusframework.container.AbstractIteratingActionContainer
org.citrusframework.container.RepeatOnErrorUntilTrue
- All Implemented Interfaces:
Described,Named,Completable,TestActionContainer,TestAction,TestActorAware
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.citrusframework.container.AbstractIteratingActionContainer
condition, conditionExpression, index, indexName, startFields inherited from class org.citrusframework.container.AbstractActionContainer
actionsFields inherited from class org.citrusframework.actions.AbstractTestAction
description -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteIteration(TestContext context) Execute embedded actions in loop.Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.citrusframework.container.AbstractIteratingActionContainer
checkCondition, doExecute, executeActions, getCondition, getConditionExpression, getIndex, getIndexName, getStart, getTimeout, isDoneMethods inherited from class org.citrusframework.container.AbstractActionContainer
addTestAction, addTestAction, addTestActions, addTestActions, executeAction, getActionCount, getActionIndex, getActions, getActiveAction, getExecutedActions, getTestAction, setActions, setActiveAction, setExecutedActionMethods inherited from class org.citrusframework.actions.AbstractTestAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.TestAction
execute, getActor, getName, isDisabled
-
Constructor Details
-
RepeatOnErrorUntilTrue
Default constructor.
-
-
Method Details
-
executeIteration
Description copied from class:AbstractIteratingActionContainerExecute embedded actions in loop.- Specified by:
executeIterationin classAbstractIteratingActionContainer- Parameters:
context- Test context holding variable information.
-
getAutoSleep
Deprecated, for removal: This API element is subject to removal in a future version.usegetAutoSleepDuration()insteadGets the duration this action sleeps in milliseconds.- Returns:
- the autoSleep
-
getAutoSleepDuration
- Returns:
- the duration this action sleeps in between retries
-
getAutoSleepDuration()instead