KC's Workspace
    Preparing search index...

    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 TestAttachment {
        body?: string | Uint8Array<ArrayBufferLike>;
        contentType?: string;
        path?: string;
    }
    Index

    Properties

    body?: string | Uint8Array<ArrayBufferLike>

    Inline attachment content as a string or raw binary data

    contentType?: string

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

    path?: string

    File system path to the attachment