@azure/microsoft-playwright-testing
Version:
Package to integrate your Playwright test suite with Microsoft Playwright Testing service
25 lines • 1.43 kB
TypeScript
import type { FullResult } from "@playwright/test/reporter";
import type { EnvironmentVariables } from "../common/environmentVariables";
import type { Shard, UploadMetadata } from "../model/shard";
import type { StorageUri } from "../model/storageUri";
import type { TestResult } from "../model/testResult";
import type { TestRun } from "../model/testRun";
import type { CIInfo } from "./cIInfoProvider";
import type ReporterUtils from "./reporterUtils";
export declare class ServiceClient {
private httpService;
private readonly envVariables;
private readonly reporterUtils;
private readonly addInformationalMessage;
private isInformationMessagePresent;
private addKeyToInformationMessage;
constructor(envVariables: EnvironmentVariables, reporterUtils: ReporterUtils, addErrorInformation: (errorMessage: string) => void, isInformationMessagePresent: (key: string) => boolean, addKeyToInformationMessage: (key: string) => void);
patchTestRun(ciInfo: CIInfo): Promise<TestRun>;
postTestRunShardStart(): Promise<Shard>;
postTestRunShardEnd(result: FullResult, shard: Shard, errorMessages: string[], attachmentMetadata: UploadMetadata, workers: number): Promise<TestRun>;
postTestResults(testResults: TestResult[]): Promise<void>;
createStorageUri(): Promise<StorageUri>;
private getServiceEndpoint;
private handleErrorResponse;
}
//# sourceMappingURL=serviceClient.d.ts.map