Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LegacyLifecycleHooks

Hierarchy

  • LegacyLifecycleHooks

Implements

  • TestExecutionLifecycleHooks

Index

Constructors

Properties

builder: Builder
currentTest: Maybe<string> = null

Path to the current Testsuite. Might be used in requestContext

driver: Maybe<ThenableWebDriver> = null
driverLoggingAdapter: Maybe<DriverLoggingAdapter>
properties: Maybe<LegacyProjectProperties> = null
reuseBrowser: boolean = true
uiOnly: boolean = false

Methods

  • afterExecution(project: Project, testExecutionContext: TestExecutionContext): Promise<void>
  • afterRunFile(file: TestFile, project: Project, testExecutionContext: TestExecutionContext): Promise<void>
  • Parameters

    • file: TestFile
    • project: Project
    • testExecutionContext: TestExecutionContext

    Returns Promise<void>

  • beforeExecution(project: Project, testExecutionContext: TestExecutionContext): Promise<void>
  • beforeRunFile(file: TestFile, project: Project, testExecutionContext: TestExecutionContext): Promise<void>
  • Parameters

    • file: TestFile
    • project: Project
    • testExecutionContext: TestExecutionContext

    Returns Promise<void>

  • onProject(project: Project, testExecutionContext: TestExecutionContext): Promise<void>
  • onSignal(signal: Signals, project: Project, _: TestExecutionContext): Promise<void>
  • onUnhandledError(error: any, project: Project, _: TestExecutionContext): Promise<void>
  • requestContext(testExecutionContext: TestExecutionContext, project: Project): Promise<LegacyApi>