UNPKG

@wdio/browserstack-service

Version:
62 lines 2.12 kB
import TrackedInstance from './trackedInstance.js'; import type TrackedContext from './trackedContext.js'; export default class TestFrameworkInstance extends TrackedInstance { #private; testFrameworks: Array<string>; testFrameworksVersions: Record<string, string>; /** * create TestFrameworkInstance * @param {TrackedContext} context * @param {Array} testFrameworks * @param {Map} testFrameworksVersions * @param {TestFrameworkState} testFrameworkState * @param {HookState} hookState */ constructor(context: TrackedContext, testFrameworks: Array<string>, testFrameworksVersions: Record<string, string>, testFrameworkState: State, hookState: State); /** * get CurrentTestState of instance * @returns {*} - returns TestFramework State */ getCurrentTestState(): State; /** * set CurrentTestState of instance * @param {TestFrameworkState} currentTestState - Set Current TestFramework State */ setCurrentTestState(currentTestState: State): void; /** * get CurrentHookState of instance * @returns {HookState} - return current hook state. */ getCurrentHookState(): State; /** * set CurrentHookState of instance * @param {HookState} currentHookState - set current hook state. */ setCurrentHookState(currentHookState: State): void; /** * get LastTestState of instance * @returns {TestFrameworkState} - return last test framework state */ getLastTestState(): State; /** * set LastTestState of instance * @param {TestFrameworkState} lastTestState - set last test framework state */ setLastTestState(lastTestState: State): void; /** * get LastHookState of instance * @returns {HookState} get last hook state */ getLastHookState(): State; /** * set LastHookState of instance * @param {HookState} lastHookState - returns late hook state */ setLastHookState(lastHookState: State): void; /** * get CreatedAt of instance * @returns {string} - return created time */ getCreatedAt(): string; } //# sourceMappingURL=testFrameworkInstance.d.ts.map