Hook class abstract

A hook that is run during certain points in the execution cycle You can override any or none of the methods

Implementers

Constructors

Hook()

Properties

hashCode int
The hash code for this object.
no setterinherited
priority int
The priority to assign to this hook. Higher priority gets run first so a priority of 10 is run before a priority of 2
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAfterRun(TestConfiguration config) Future<void>
Run after all scenarios in a test run have completed
onAfterScenario(TestConfiguration config, String scenario, Iterable<Tag> tags) Future<void>
Run after a scenario has executed
onAfterScenarioWorldCreated(World world, String scenario, Iterable<Tag> tags) Future<void>
Run after the scenario world is created but run before a scenario and its steps are executed Might not be invoked if there is not a world object
onAfterStep(World world, String step, StepResult stepResult) Future<void>
Run after a step has executed
onBeforeRun(TestConfiguration config) Future<void>
Run before any scenario in a test run have executed
onBeforeScenario(TestConfiguration config, String scenario, Iterable<Tag> tags) Future<void>
Run before a scenario and it steps are executed
onBeforeStep(World world, String step) Future<void>
Run before a step is executed
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited