@wdio/browserstack-service
Version:
WebdriverIO service for better Browserstack integration
46 lines • 2.56 kB
TypeScript
import fs from 'node:fs';
import type { Options, Capabilities } from '@wdio/types';
import type { BrowserstackConfig, BrowserstackOptions, TestObservabilityOptions } from '../types.js';
export declare class CLIUtils {
static automationFrameworkDetail: {};
static testFrameworkDetail: {};
static CLISupportedFrameworks: string[];
static isDevelopmentEnv(): boolean;
static getCLIParamsForDevEnv(): Record<string, string>;
/**
* Build config object for binary session request
* @returns {string}
* @throws {Error}
*/
static getBinConfig(config: Options.Testrunner, capabilities: Capabilities.TestrunnerCapabilities | WebdriverIO.Capabilities, options: BrowserstackConfig & BrowserstackOptions, buildTag?: string): string;
static getSdkVersion(): string;
static getSdkLanguage(): string;
static setupCliPath(config: Options.Testrunner): Promise<string | null>;
static checkAndUpdateCli(existingCliPath: string, cliDir: string, config: Options.Testrunner): Promise<string | null>;
static getCliDir(): string;
static getWritableDir(): string | null | undefined;
static getExistingCliPath(cliDir: string): string;
static requestToUpdateCLI: (queryParams: Record<string, string>, config: Options.Testrunner) => Promise<any>;
static runShellCommand(cmdCommand: string, workingDir?: string): Promise<string>;
static downloadLatestBinary: (binDownloadUrl: string, cliDir: string) => Promise<string | null>;
static downloadFileStream(downloadedFileStream: fs.WriteStream, binaryName: string | null, zipFilePath: string, cliDir: string, resolve: (path: string) => void, reject: (reason?: Error) => void): void;
static getTestFrameworkDetail(): any;
static getAutomationFrameworkDetail(): any;
static setFrameworkDetail(testFramework: string, automationFramework: string): void;
/**
* Get the current instance name using thread id and processId
* @returns {string}
*/
static getCurrentInstanceName(): string;
/**
*
* @param {TestFrameworkState | AutomationFrameworkState} frameworkState
* @param {HookState} hookState
* @returns {string}
*/
static getHookRegistryKey(frameworkState: State, hookState: State): string;
static matchHookRegex(hookState: string): boolean;
static getObservabilityBuildTags(observabilityOptions: TestObservabilityOptions, bstackBuildTag?: string): string[];
static checkCLISupportedFrameworks(framework: string | undefined): boolean;
}
//# sourceMappingURL=cliUtils.d.ts.map