Context manager for running test scenarios with Allure integration

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Parameters

    • ctx: Record<string, any>

    Returns Context

Properties

#private: any
metaKey: symbol = ScenarioSymbol

Methods

  • Returns Record<string, any>

  • Parameters

    • key: string

    Returns boolean

  • Type Parameters

    • T = unknown

    Parameters

    • key: string

    Returns T

  • Parameters

    • key: string
    • value: any

    Returns void

  • Parameters

    • scenarios: any[]
    • Optional ctx: Record<string, any>

    Returns Promise<Context>

  • Execute a step with Allure reporting

    Parameters

    • step: (() => void | Promise<void>)

      Step function to execute

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

    Returns Promise<void>

    Promise that resolves when step completes