UNPKG

3.1 kBTypeScriptView Raw
1export interface Attachment {
2 name: string;
3 type: string;
4 source: string;
5}
6export interface AttachmentOptions {
7 contentType: ContentType | string;
8 fileExtension?: string;
9}
10export interface Label {
11 name: LabelName | string;
12 value: string;
13}
14export interface Link {
15 name?: string;
16 url: string;
17 type?: LinkType | string;
18}
19export interface Parameter {
20 name: string;
21 value: string;
22 hidden?: boolean;
23 excluded?: boolean;
24}
25export interface StatusDetails {
26 message?: string;
27 trace?: string;
28}
29interface ExecutableItem {
30 name?: string;
31 status?: Status;
32 statusDetails: StatusDetails;
33 stage: Stage;
34 description?: string;
35 descriptionHtml?: string;
36 steps: StepResult[];
37 attachments: Attachment[];
38 parameters: Parameter[];
39 start?: number;
40 stop?: number;
41}
42export declare type FixtureResult = ExecutableItem;
43export declare type StepResult = ExecutableItem;
44export interface TestResult extends ExecutableItem {
45 uuid: string;
46 historyId: string;
47 fullName?: string;
48 testCaseId?: string;
49 labels: Label[];
50 links: Link[];
51}
52export interface TestResultContainer {
53 uuid: string;
54 name?: string;
55 children: string[];
56 befores: FixtureResult[];
57 afters: FixtureResult[];
58}
59export interface Category {
60 name?: string;
61 description?: string;
62 descriptionHtml?: string;
63 messageRegex?: string | RegExp;
64 traceRegex?: string | RegExp;
65 matchedStatuses?: Status[];
66 flaky?: boolean;
67}
68export interface ExecutorInfo {
69 name?: string;
70 type?: string;
71 url?: string;
72 buildOrder?: number;
73 buildName?: string;
74 buildUrl?: string;
75 reportUrl?: string;
76 reportName?: string;
77}
78export declare enum Status {
79 FAILED = "failed",
80 BROKEN = "broken",
81 PASSED = "passed",
82 SKIPPED = "skipped"
83}
84export declare enum Stage {
85 SCHEDULED = "scheduled",
86 RUNNING = "running",
87 FINISHED = "finished",
88 PENDING = "pending",
89 INTERRUPTED = "interrupted"
90}
91export declare enum LabelName {
92 AS_ID = "AS_ID",
93 SUITE = "suite",
94 PARENT_SUITE = "parentSuite",
95 SUB_SUITE = "subSuite",
96 EPIC = "epic",
97 FEATURE = "feature",
98 STORY = "story",
99 SEVERITY = "severity",
100 TAG = "tag",
101 OWNER = "owner",
102 LEAD = "lead",
103 HOST = "host",
104 THREAD = "thread",
105 TEST_METHOD = "testMethod",
106 TEST_CLASS = "testClass",
107 PACKAGE = "package",
108 FRAMEWORK = "framework",
109 LANGUAGE = "language"
110}
111export declare enum Severity {
112 BLOCKER = "blocker",
113 CRITICAL = "critical",
114 NORMAL = "normal",
115 MINOR = "minor",
116 TRIVIAL = "trivial"
117}
118export declare enum ContentType {
119 TEXT = "text/plain",
120 XML = "application/xml",
121 CSV = "text/csv",
122 TSV = "text/tab-separated-values",
123 CSS = "text/css",
124 URI = "text/uri-list",
125 SVG = "image/svg+xml",
126 PNG = "image/png",
127 JSON = "application/json",
128 ZIP = "application/zip",
129 WEBM = "video/webm",
130 JPEG = "image/jpeg"
131}
132export declare enum LinkType {
133 ISSUE = "issue",
134 TMS = "tms"
135}
136export {};