Skip to main content

externaldefault

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

Implements

  • Reporter

Index

Constructors

externalconstructor

  • Parameters

    • externalconfig: SerenityReporterForPlaywrightTestConfig
    • externalserenity: 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.

    • externalrequirementsHierarchy: RequirementsHierarchy = ...

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

    Returns SerenityReporterForPlaywrightTest

Methods

externalonBegin

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

    • externalconfig: FullConfig<{}, {}>
    • externalsuite: Suite

    Returns void

externalonTestBegin

  • onTestBegin(test: TestCase): void
  • Parameters

    • externaltest: TestCase

    Returns void

externalonTestEnd

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

    • externaltest: TestCase
    • externalresult: TestResult

    Returns void

externalonError

  • onError(error: TestError): void
  • Parameters

    • externalerror: TestError

    Returns void

externalonEnd

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

externalprintsToStdio

  • printsToStdio(): boolean
  • Returns boolean