Record Class AutotestEngine.ExecutionPlan
- Record Components:
beforeAll
- The names of the scenes to be executed in thebeforeAll
scene.beforeEach
- The names of the scenes to be executed in thebeforeEach
scene.value
- The names of the scenes to be executed as real tests.afterEach
- The names of the scenes to be executed in theafterEach
scene.afterAll
- The names of the scenes to be executed in theafterAll
scene.sceneCallGraph
- A map that holds dependencies of a scene in this plan.dependencies
- A map that holds dependencies in main of a given scene in main (value
). An empty list will be returned, if a queried scene is not in main (value
).
- 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 theafterAll
record component.Returns the value of theafterEach
record component.Returns the value of thebeforeAll
record component.Returns the value of thebeforeEach
record component.Returns the value of thedependencies
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesceneCallGraph
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
ExecutionPlan
public ExecutionPlan(List<String> beforeAll, List<String> beforeEach, List<String> value, List<String> afterEach, List<String> afterAll, Map<String, List<String>> sceneCallGraph, Map<String, List<String>> dependencies) Creates an instance of aExecutionPlan
record class.- Parameters:
beforeAll
- the value for thebeforeAll
record componentbeforeEach
- the value for thebeforeEach
record componentvalue
- the value for thevalue
record componentafterEach
- the value for theafterEach
record componentafterAll
- the value for theafterAll
record componentsceneCallGraph
- the value for thesceneCallGraph
record componentdependencies
- the value for thedependencies
record 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 thebeforeEach
record component.- Returns:
- the value of the
beforeEach
record component
-
value
-
afterEach
-
afterAll
-
sceneCallGraph
Returns the value of thesceneCallGraph
record component.- Returns:
- the value of the
sceneCallGraph
record component
-
dependencies
Returns the value of thedependencies
record component.- Returns:
- the value of the
dependencies
record component
-