Package com.consol.citrus.container
Interface TestActionContainer
-
- All Superinterfaces:
TestAction
- All Known Subinterfaces:
AfterSuite,AfterTest,BeforeSuite,BeforeTest,TestCase
public interface TestActionContainer extends TestAction
Container interface describing all test action containers that hold several embedded test actions to execute.- Author:
- Christoph Deppisch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TestActionContaineraddTestAction(TestAction action)Adds a test action to the nested action list.TestActionContaineraddTestActions(TestAction... action)Adds one to many test actions to the nested action list.longgetActionCount()Get the number of embedded actions in this container.intgetActionIndex(TestAction action)Returns the index in the action chain for provided action instance.List<TestAction>getActions()Get the embedded test actions within this container.TestActiongetActiveAction()Get the action that was executed most recently.List<TestAction>getExecutedActions()Gets all nested actions that have been executed in the container.TestActiongetTestAction(int index)Get the test action with given index in list.TestActionContainersetActions(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 com.consol.citrus.TestAction
execute, getActor, getName, isDisabled
-
-
-
-
Method Detail
-
setActions
TestActionContainer setActions(List<TestAction> actions)
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
TestActionContainer addTestActions(TestAction... action)
Adds one to many test actions to the nested action list.- Parameters:
action-
-
addTestAction
TestActionContainer addTestAction(TestAction action)
Adds a test action to the nested action list.- Parameters:
action-
-
getActionIndex
int getActionIndex(TestAction action)
Returns the index in the action chain for provided action instance.- Returns:
- the action index in the action list
-
setActiveAction
void setActiveAction(TestAction action)
Sets the current active action executed.- Parameters:
action-
-
setExecutedAction
void setExecutedAction(TestAction action)
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
TestAction getTestAction(int index)
Get the test action with given index in list.- Parameters:
index-- Returns:
-
-