@wdio/browserstack-service
Version:
WebdriverIO service for better Browserstack integration
34 lines • 1.14 kB
TypeScript
import type { BrowserstackConfig } from '../types.js';
/**
* Handles test ordering orchestration with the BrowserStack server.
*/
export declare class TestOrderingServer {
private config;
private ORDERING_ENDPOINT;
private requestData;
private defaultTimeout;
private defaultTimeoutInterval;
private splitTestsApiCallCount;
/**
* @param config Test orchestration config
*/
constructor(config: BrowserstackConfig);
/**
* Initiates the split tests request and stores the response data for polling.
*/
splitTests(testFiles: string[], orchestrationStrategy: string, orchestrationMetadata?: string): Promise<void>;
/**
* Processes the split tests API response and extracts relevant fields.
*/
private _processSplitTestsResponse;
/**
* Retrieves the ordered test files from the orchestration server
*/
getOrderedTestFiles(): Promise<string[] | null>;
/**
* Returns the count of split tests API calls made.
*/
getSplitTestsApiCallCount(): number;
}
export default TestOrderingServer;
//# sourceMappingURL=test-ordering-server.d.ts.map