UNPKG

1.43 kBTypeScriptView Raw
1import { AttachmentOptions, ContentType, ExecutableItem, FixtureResult, ParameterOptions, Stage, Status, StatusDetails, StepResult, TestResult } from "./model.js";
2export declare class ExecutableItemWrapper {
3 private readonly info;
4 constructor(info: FixtureResult | TestResult);
5 get wrappedItem(): FixtureResult | TestResult;
6 set name(name: string);
7 set description(description: string | undefined);
8 set descriptionHtml(descriptionHtml: string | undefined);
9 set status(status: Status | undefined);
10 get status(): Status | undefined;
11 set statusDetails(details: StatusDetails);
12 set detailsMessage(message: string | undefined);
13 set detailsTrace(trace: string | undefined);
14 set stage(stage: Stage);
15 parameter(name: string, value: any, options?: ParameterOptions): void;
16 get isAnyStepFailed(): boolean;
17 get isAllStepsEnded(): boolean;
18 addParameter(name: string, value: string, options?: ParameterOptions): void;
19 addAttachment(name: string, options: ContentType | string | AttachmentOptions, fileName: string): void;
20 startStep(name: string, start?: number): AllureStep;
21 wrap<T>(fun: (...args: any[]) => T): (...args: any[]) => T;
22 addStep(step: ExecutableItem): void;
23}
24export declare class AllureStep extends ExecutableItemWrapper {
25 private readonly stepResult;
26 constructor(stepResult: StepResult, start?: number);
27 endStep(stop?: number): void;
28}