Skip to main content

Domain Events

Serenity/JS domain events represent all the important things that happen during the execution of your test suite. They are a critical part of the Serenity/JS messaging infrastructure that enables the loosely coupled, modular architecture of the framework, and ensure that all the registered reporting services have the same, consistent picture of your test scenarios.

Serenity/JS domain events are produced when actors perform their activities and when test runner adapters translate information about your test runner lifecycle events. Domain events are then propagated via the stage and consumed by all the registered stage crew members for reporting purposes.

Serenity/JS Reporting Services integration diagram

You'll typically only need to learn about Serenity/JS domain events when implementing custom reporting services. In this case, you should study: