Record Class AutotestEngine.ExecutionPlan

java.lang.Object
java.lang.Record
jp.co.moneyforward.autotest.framework.testengine.AutotestEngine.ExecutionPlan
Record Components:
beforeAll - The names of the scenes to be executed in the beforeAll scene.
beforeEach - The names of the scenes to be executed in the beforeEach scene.
value - The names of the scenes to be executed as real tests.
afterEach - The names of the scenes to be executed in the afterEach scene.
afterAll - The names of the scenes to be executed in the afterAll scene.
Enclosing class:
AutotestEngine

public static record AutotestEngine.ExecutionPlan(List<String> beforeAll, List<String> beforeEach, List<String> value, List<String> afterEach, List<String> afterAll) extends Record

This record models an execution plan created from the requirement given by user.

The framework executes the scenes returned by each method. It is a design concern of the test engine (AutotestEngine) how scenes within the stage. For instance, whether they should be executed sequentially or concurrently, although sequential execution will be preferred in most cases. The engine should execute each state as an instance of this record gives. All scenes in beforeAll should be executed in the beforeAll stage, nothing else at all, in the order, where they are returned, as long as they give no errors, and as such.

In situations, where a non-directly required scenes need to be executed for some reason (E.g., a scene in a stage requires some others to be executed beforehand), including the scenes implicitly and sorting out the execution order appropriately is the responsibility of the PlanningStrategy, not the engine.

See Also:
  • Constructor Details

    • ExecutionPlan

      public ExecutionPlan(List<String> beforeAll, List<String> beforeEach, List<String> value, List<String> afterEach, List<String> afterAll)
      Creates an instance of a ExecutionPlan record class.
      Parameters:
      beforeAll - the value for the beforeAll record component
      beforeEach - the value for the beforeEach record component
      value - the value for the value record component
      afterEach - the value for the afterEach record component
      afterAll - the value for the afterAll record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • beforeAll

      public List<String> beforeAll()
      Returns the value of the beforeAll record component.
      Returns:
      the value of the beforeAll record component
    • beforeEach

      public List<String> beforeEach()
      Returns the value of the beforeEach record component.
      Returns:
      the value of the beforeEach record component
    • value

      public List<String> value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • afterEach

      public List<String> afterEach()
      Returns the value of the afterEach record component.
      Returns:
      the value of the afterEach record component
    • afterAll

      public List<String> afterAll()
      Returns the value of the afterAll record component.
      Returns:
      the value of the afterAll record component