Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LegacyLifecycleHooks

Hierarchy

  • LegacyLifecycleHooks

Implements

  • TestExecutionLifecycleHooks

Index

Constructors

constructor

Properties

Readonly builder

builder: Builder

currentTest

currentTest: Maybe<string> = null

Path to the current Testsuite. Might be used in requestContext

driver

driver: Maybe<ThenableWebDriver> = null

driverLoggingAdapter

driverLoggingAdapter: Maybe<DriverLoggingAdapter>

properties

properties: Maybe<LegacyProjectProperties> = null

reuseBrowser

reuseBrowser: boolean = true

uiOnly

uiOnly: boolean = false

Methods

afterExecution

  • afterExecution(project: Project, testExecutionContext: TestExecutionContext): Promise<void>

afterRunFile

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

beforeExecution

  • beforeExecution(project: Project, testExecutionContext: TestExecutionContext): Promise<void>

beforeRunFile

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

onProject

  • onProject(project: Project, testExecutionContext: TestExecutionContext): Promise<void>

onSignal

  • onSignal(signal: Signals, project: Project, _: TestExecutionContext): Promise<void>

onUnhandledError

  • onUnhandledError(error: any, project: Project, _: TestExecutionContext): Promise<void>

requestContext

  • requestContext(testExecutionContext: TestExecutionContext, project: Project): Promise<LegacyApi>