UNPKG

allure-js-commons

Version:
32 lines (31 loc) 2.15 kB
/// <reference types="node" /> /// <reference types="node" /> import { type AttachmentOptions, type Label, type LabelName, type Link, type LinkType, type ParameterMode, type ParameterOptions, Status, type StatusDetails } from "../../model.js"; import type { RuntimeMessage } from "../types.js"; import type { TestRuntime } from "./types.js"; export declare abstract class BaseMessageTestRuntime implements TestRuntime { label(name: LabelName | string, value: string): Promise<void>; labels(...labels: Label[]): Promise<void>; link(url: string, type?: LinkType | string, name?: string): Promise<void>; links(...links: Link[]): Promise<void>; parameter(name: string, value: string, options?: ParameterOptions): Promise<void>; description(markdown: string): Promise<void>; descriptionHtml(html: string): Promise<void>; displayName(name: string): Promise<void>; historyId(value: string): Promise<void>; testCaseId(value: string): Promise<void>; attachment(name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): Promise<void>; attachmentFromPath(name: string, path: string, options: AttachmentOptions): Promise<void>; globalAttachment(name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): Promise<void>; globalAttachmentFromPath(name: string, path: string, options: Omit<AttachmentOptions, "encoding">): Promise<void>; globalError(details: StatusDetails): Promise<void>; logStep(name: string, status?: Status, error?: Error): Promise<void>; step<T = void>(name: string, body: () => T | PromiseLike<T>): Promise<T>; stepDisplayName(name: string): Promise<void>; stepParameter(name: string, value: string, mode?: ParameterMode): Promise<void>; abstract sendMessage(message: RuntimeMessage): Promise<void>; } export declare abstract class MessageTestRuntime extends BaseMessageTestRuntime { attachment(name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): Promise<void>; globalAttachment(name: string, content: Buffer | Uint8Array | string, options: AttachmentOptions): Promise<void>; }