Package org.citrusframework.container
Interface TestActionContainer
- All Superinterfaces:
TestAction
- All Known Subinterfaces:
AfterSuite,AfterTest,BeforeSuite,BeforeTest,TestCase
Container interface describing all test action containers that hold several embedded test actions
to execute.
- Author:
- Christoph Deppisch
-
Method Summary
Modifier and TypeMethodDescriptionaddTestAction(TestAction action) Adds a test action to the nested action list.addTestActions(TestAction... action) Adds one to many test actions to the nested action list.longGet the number of embedded actions in this container.intgetActionIndex(TestAction action) Returns the index in the action chain for provided action instance.Get the embedded test actions within this container.Get the action that was executed most recently.Gets all nested actions that have been executed in the container.getTestAction(int index) Get the test action with given index in list.setActions(List<TestAction> actions) Sets the embedded test actions to execute within this container.voidsetActiveAction(TestAction action) Sets the current active action executed.voidsetExecutedAction(TestAction action) Sets the last action that has been executed.Methods inherited from interface org.citrusframework.TestAction
execute, getActor, getName, isDisabled
-
Method Details
-
setActions
Sets the embedded test actions to execute within this container.- Parameters:
actions-
-
getActions
List<TestAction> getActions()Get the embedded test actions within this container. -
getActionCount
long getActionCount()Get the number of embedded actions in this container.- Returns:
-
addTestActions
Adds one to many test actions to the nested action list.- Parameters:
action-
-
addTestAction
Adds a test action to the nested action list.- Parameters:
action-
-
getActionIndex
Returns the index in the action chain for provided action instance.- Returns:
- the action index in the action list
-
setActiveAction
Sets the current active action executed.- Parameters:
action-
-
setExecutedAction
Sets the last action that has been executed.- Parameters:
action-
-
getActiveAction
TestAction getActiveAction()Get the action that was executed most recently.- Returns:
-
getExecutedActions
List<TestAction> getExecutedActions()Gets all nested actions that have been executed in the container.- Returns:
-
getTestAction
Get the test action with given index in list.- Parameters:
index-- Returns:
-