Skip to main content

default

Serenity/JS reporter that receives notifications from Playwright Test and emits them as Serenity/JS domain events which can be used by Serenity/JS stage crew members.

Implements

  • Reporter

Index

Constructors

constructor

  • Parameters

    • config: SerenityReporterForPlaywrightTestConfig
    • serenity: Serenity = reporterSerenityInstance

      Instance of Serenity, specific to the Node process running this Serenity reporter. Note that Playwright runs test workers and reporters in separate processes.

    • requirementsHierarchy: RequirementsHierarchy = ...

      Root directory of the requirements hierarchy, used to determine capabilities and themes.

    Returns SerenityReporterForPlaywrightTest

Methods

onBegin

  • onBegin(config: FullConfig<{}, {}>, suite: Suite): void
  • Parameters

    • config: FullConfig<{}, {}>
    • suite: Suite

    Returns void

onTestBegin

  • onTestBegin(test: TestCase): void
  • Parameters

    • test: TestCase

    Returns void

onTestEnd

  • onTestEnd(test: TestCase, result: TestResult): void
  • Parameters

    • test: TestCase
    • result: TestResult

    Returns void

onError

  • onError(error: TestError): void
  • Parameters

    • error: TestError

    Returns void

onEnd

  • onEnd(): Promise<void>
  • Returns Promise<void>

printsToStdio

  • printsToStdio(): boolean
  • Returns boolean