StreamReporter
Implements
Index
Methods
Constructors
Methods
staticfromJSON
Instantiates a
StreamReporter
outputting a stream of domain events to anoutputFile
at the given location.Parameters
config: { outputFile: string; cwd?: string }
Returns StageCrewMember
assignedTo
Creates a new instance of this StageCrewMember and assigns it to a given Stage.
Parameters
stage: Stage
An instance of a Stage this StageCrewMember will be assigned to
Returns StageCrewMember
A new instance of this StageCrewMember
notifyOf
Handles DomainEvent objects emitted by the StageManager.
Parameters
event: DomainEvent
Returns void
Constructors
constructor
Parameters
output: Writable = process.stdout
A Writable stream that should receive the output
optionalstage: Stage
The stage this StageCrewMember should be assigned to
Returns StreamReporter
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