playwright-testrail-sync
Version:
TestRail Integration for Playwright with comprehensive logging and error handling
21 lines • 1.11 kB
TypeScript
/**
* Attachment uploader
* Handles attachment upload operations
*/
import { TestResult } from "@playwright/test/reporter";
import { TestRailApiClient } from "../../api";
import { TestRailLogger } from "../../logging";
import { PlaywrightTestRailSyncOptions } from "../../types";
/**
* Upload attachment to TestRail
*/
export declare function uploadAttachment(caseId: number, filePath: string, fileName: string | undefined, options: PlaywrightTestRailSyncOptions, apiClient: TestRailApiClient, logger: TestRailLogger): Promise<void>;
/**
* Upload attachment to a test result
*/
export declare function uploadAttachmentToResult(resultId: number, filePath: string, fileName: string | undefined, options: PlaywrightTestRailSyncOptions, apiClient: TestRailApiClient, logger: TestRailLogger): Promise<void>;
/**
* Upload attachments to a specific test result
*/
export declare function uploadAttachmentsToResult(resultId: number, result: TestResult, options: PlaywrightTestRailSyncOptions, apiClient: TestRailApiClient, logger: TestRailLogger): Promise<void>;
//# sourceMappingURL=attachment-uploader.d.ts.map