externalStreamReporter
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externaloutput: Writable = process.stdout
A Writable stream that should receive the output
externaloptionalstage: Stage
The stage this
StageCrewMembershould be assigned to
Returns StreamReporter
Methods
staticexternalfromJSON
Instantiates a
StreamReporteroutputting a stream of Serenity/JS domain events to anoutputFileat the given location.Parameters
externalconfig: { outputFile: string; cwd?: string }
externaloutputFile: string
externaloptionalcwd: string
Returns StageCrewMember
externalassignedTo
Creates a new instance of this
StageCrewMemberand assigns it to a givenStage.Parameters
externalstage: Stage
An instance of a
StagethisStageCrewMemberwill be assigned to
Returns StageCrewMember
A new instance of this
StageCrewMember
externalnotifyOf
Handles
DomainEventobjects emitted by theStageManager.Parameters
externalevent: DomainEvent
Returns void
Serialises all the
DomainEventobjects it receives and streams them as ndjson to the output stream or file.Useful when debugging issues related to custom Serenity/JS test runner adapters.
Registering Stream Reporter programmatically
Writing Domain Events to a file
Using Stream Reporter with Playwright Test
Using Stream Reporter with WebdriverIO
Using Stream Reporter with Protractor