@wdio/browserstack-service
Version:
WebdriverIO service for better Browserstack integration
23 lines • 997 B
TypeScript
/**
* Utility class for making API requests to the BrowserStack orchestration API
*/
export declare class RequestUtils {
/**
* Makes a request to the test orchestration split tests endpoint
*/
static testOrchestrationSplitTests(reqEndpoint: string, data: Record<string, unknown>): Promise<string | Record<string, unknown> | null>;
/**
* Gets ordered tests from the test orchestration
*/
static getTestOrchestrationOrderedTests(reqEndpoint: string): Promise<string | Record<string, unknown> | null>;
/**
* Makes an orchestration request with the given method and data
*/
static makeOrchestrationRequest(method: 'GET' | 'POST' | 'PUT', reqEndpoint: string, options: {
data?: unknown;
params?: Record<string, string | number | boolean | undefined>;
extraHeaders?: Record<string, string>;
}): Promise<Record<string, unknown> | string | null>;
}
export default RequestUtils;
//# sourceMappingURL=request-utils.d.ts.map