playwright-testrail-sync
Version:
TestRail Integration for Playwright with comprehensive logging and error handling
45 lines • 1.22 kB
TypeScript
/**
* TestRail Integration for Playwright
* Comprehensive reporter with advanced features and error handling
*/
import { Reporter, TestCase, TestResult } from "@playwright/test/reporter";
import { PlaywrightTestRailSyncOptions } from "../types";
/**
* TestRail Integration implementation
*/
export declare class PlaywrightTestRailSync implements Reporter {
private options;
private logger;
private apiClient;
private state;
private testResults;
private testAttachments;
private pendingTestEndPromises;
constructor(options: PlaywrightTestRailSyncOptions);
/**
* Called when test execution begins
*/
onBegin(): Promise<void>;
/**
* Called when a test ends
*/
onTestEnd(test: TestCase, result: TestResult): void;
private processTestEnd;
/**
* Called when test execution ends
*/
onEnd(): Promise<void>;
/**
* Called when an error occurs
*/
onError(error: any): void;
/**
* Upload results to TestRail
*/
private uploadResultsToTestRail;
/**
* Upload attachments to test results
*/
private uploadAttachmentsToResults;
}
//# sourceMappingURL=playwright-testrail-sync.d.ts.map