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
StageCrewMember
should be assigned to
Returns StreamReporter
Methods
staticexternalfromJSON
Instantiates a
StreamReporter
outputting a stream of Serenity/JS domain events to anoutputFile
at the given location.Parameters
externalconfig: { outputFile: string; cwd?: string }
externaloutputFile: string
externaloptionalcwd: string
Returns StageCrewMember
externalassignedTo
Creates a new instance of this
StageCrewMember
and assigns it to a givenStage
.Parameters
externalstage: Stage
An instance of a
Stage
thisStageCrewMember
will be assigned to
Returns StageCrewMember
A new instance of this
StageCrewMember
externalnotifyOf
Handles
DomainEvent
objects emitted by theStageManager
.Parameters
externalevent: DomainEvent
Returns void
Serialises all the
DomainEvent
objects 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