Interface TestAction

All Known Subinterfaces:
AfterSuite, AfterTest, BeforeSuite, BeforeTest, TestActionContainer, TestCase
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TestAction
Interface for all test actions.
Since:
2006
Author:
Christoph Deppisch
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Main execution method doing all work
    default TestActor
    Gets the test actor associated with this test action.
    default String
    Name of test action injected as Spring bean name
    default boolean
    Checks if this action is disabled.
  • Method Details

    • execute

      void execute(TestContext context)
      Main execution method doing all work
      Parameters:
      context -
    • getName

      default String getName()
      Name of test action injected as Spring bean name
      Returns:
      name as String
    • isDisabled

      default boolean isDisabled(TestContext context)
      Checks if this action is disabled.
      Parameters:
      context - the current test context.
      Returns:
      true if action is marked disabled.
    • getActor

      default TestActor getActor()
      Gets the test actor associated with this test action.
      Returns: