Record Class AutotestEngine.ExecutionPlan
- Record Components:
beforeAll- The names of the scenes to be executed in thebeforeAllscene.beforeEach- The names of the scenes to be executed in thebeforeEachscene.value- The names of the scenes to be executed as real tests.afterEach- The names of the scenes to be executed in theafterEachscene.afterAll- The names of the scenes to be executed in theafterAllscene.
- Enclosing class:
AutotestEngine
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterAll()Returns the value of theafterAllrecord component.Returns the value of theafterEachrecord component.Returns the value of thebeforeAllrecord component.Returns the value of thebeforeEachrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ExecutionPlan
public ExecutionPlan(List<String> beforeAll, List<String> beforeEach, List<String> value, List<String> afterEach, List<String> afterAll) Creates an instance of aExecutionPlanrecord class.- Parameters:
beforeAll- the value for thebeforeAllrecord componentbeforeEach- the value for thebeforeEachrecord componentvalue- the value for thevaluerecord componentafterEach- the value for theafterEachrecord componentafterAll- the value for theafterAllrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
beforeAll
-
beforeEach
Returns the value of thebeforeEachrecord component.- Returns:
- the value of the
beforeEachrecord component
-
value
-
afterEach
-
afterAll
-