UNPKG

@wdio/browserstack-service

Version:
125 lines 2.38 kB
/** * Enum representing different states of an automation framework * @readonly * @enum {Object} */ export declare const TestFrameworkState: Readonly<{ /** * Initial state, no session created */ NONE: { value: number; toString(): string; }; /** * Framework instance is being beforeAll */ BEFORE_ALL: { value: number; toString(): string; }; /** * Framework is in log state */ LOG: { value: number; toString(): string; }; /** * Framework is in setup fixture state */ SETUP_FIXTURE: { value: number; toString(): string; }; /** * Framework is in init test */ INIT_TEST: { value: number; toString(): string; }; /** * Framework is in beforeEach */ BEFORE_EACH: { value: number; toString(): string; }; /** * Framework is in afterEach */ AFTER_EACH: { value: number; toString(): string; }; /** * Framework is test executing */ TEST: { value: number; toString(): string; }; /** * Framework is in step state */ STEP: { value: number; toString(): string; }; /** * Framework is log reporting state */ LOG_REPORT: { value: number; toString(): string; }; /** * Framework is in afterAll state */ AFTER_ALL: { value: number; toString(): string; }; }>; /** * Get state by value * * @param {number} value - The numeric value of the state * @returns {Object|undefined} The state object or undefined if not found */ export declare const fromValue: (value: number) => { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | { value: number; toString(): string; } | undefined; //# sourceMappingURL=testFrameworkState.d.ts.map