Package org.citrusframework.container
Class Iterate
- All Implemented Interfaces:
Described,Named,Completable,TestActionContainer,TestAction,TestActorAware
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.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteIteration(TestContext context) Execute embedded actions in loop.intgetStep()Gets the step.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
-
Iterate
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.
-
getStep
public int getStep()Gets the step.- Returns:
- the step
-