KC's Workspace
    Preparing search index...

    Interface FailureScreenshotArtifactAttachment

    Represents a file or data attachment associated with a test artifact.

    Attachments can be either file-based (via path) or inline content (via body). The contentType helps consumers understand how to interpret the attachment data.

    interface FailureScreenshotArtifactAttachment {
        body?: undefined;
        bodyEncoding?: "base64" | "utf-8";
        contentType?: string;
        originalPath: string;
        path: string;
    }

    Hierarchy (View Summary)

    Index
    body?: undefined

    Inline attachment content as a string or raw binary data

    bodyEncoding?: "base64" | "utf-8"

    How the string body is encoded.

    • 'base64' (default): body is already base64-encoded
    • 'utf-8': body is a utf8 string

    body: Uint8Array is always auto-encoded to string with bodyEncoding: 'base64' regardless of this option.

    contentType?: string

    MIME type of the attachment (e.g., 'image/png', 'text/plain')

    originalPath: string

    Original file system path to the screenshot, before attachment resolution

    path: string

    File system path to the attachment