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 Details

    • 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: