externalStageCrewMember
Hierarchy
- ListensToDomainEvents
- StageCrewMember
Implemented by
Index
Methods
Methods
externalnotifyOf
Handles
DomainEvent
objects emitted by theStage
that thisStageCrewMember
is assigned to.Parameters
externalevent: DomainEvent
Returns void
externalassignedTo
Assigns a
Stage
to thisStageCrewMember
Parameters
externalstage: Stage
Returns StageCrewMember
You can think of the
StageCrewMember
as an in-memory microservice that reacts to Serenity/JS domain events, published by theStageManager
, and originally emitted by actors performing activities and Serenity/JS test runner adapters notifying the framework about test scenario-specific events like SceneStarts or SceneFinishes.Every stage crew member receives a reference to the stage, and therefore the stage manager, which enables them to emit domain events back.
This interface is useful when you're interested in implementing custom Serenity/JS reporters or supporting services.
Implementing a custom StageCrewMember
Using the custom StageCrewMember
Learn more
SerenityConfig.crew
configure
StageCrewMember
ListensToDomainEvents
DomainEvent