1 | export interface Attachment {
|
2 | name: string;
|
3 | type: string;
|
4 | source: string;
|
5 | }
|
6 | export interface AttachmentOptions {
|
7 | contentType: ContentType | string;
|
8 | fileExtension?: string;
|
9 | }
|
10 | export interface Label {
|
11 | name: LabelName | string;
|
12 | value: string;
|
13 | }
|
14 | export interface Link {
|
15 | name?: string;
|
16 | url: string;
|
17 | type?: LinkType | string;
|
18 | }
|
19 | export interface Parameter {
|
20 | name: string;
|
21 | value: string;
|
22 | hidden?: boolean;
|
23 | excluded?: boolean;
|
24 | }
|
25 | export interface StatusDetails {
|
26 | message?: string;
|
27 | trace?: string;
|
28 | }
|
29 | interface 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 | }
|
42 | export declare type FixtureResult = ExecutableItem;
|
43 | export declare type StepResult = ExecutableItem;
|
44 | export interface TestResult extends ExecutableItem {
|
45 | uuid: string;
|
46 | historyId: string;
|
47 | fullName?: string;
|
48 | testCaseId?: string;
|
49 | labels: Label[];
|
50 | links: Link[];
|
51 | }
|
52 | export interface TestResultContainer {
|
53 | uuid: string;
|
54 | name?: string;
|
55 | children: string[];
|
56 | befores: FixtureResult[];
|
57 | afters: FixtureResult[];
|
58 | }
|
59 | export 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 | }
|
68 | export 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 | }
|
78 | export declare enum Status {
|
79 | FAILED = "failed",
|
80 | BROKEN = "broken",
|
81 | PASSED = "passed",
|
82 | SKIPPED = "skipped"
|
83 | }
|
84 | export declare enum Stage {
|
85 | SCHEDULED = "scheduled",
|
86 | RUNNING = "running",
|
87 | FINISHED = "finished",
|
88 | PENDING = "pending",
|
89 | INTERRUPTED = "interrupted"
|
90 | }
|
91 | export 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 | }
|
111 | export declare enum Severity {
|
112 | BLOCKER = "blocker",
|
113 | CRITICAL = "critical",
|
114 | NORMAL = "normal",
|
115 | MINOR = "minor",
|
116 | TRIVIAL = "trivial"
|
117 | }
|
118 | export 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 | WEBM = "video/webm",
|
129 | JPEG = "image/jpeg"
|
130 | }
|
131 | export declare enum LinkType {
|
132 | ISSUE = "issue",
|
133 | TMS = "tms"
|
134 | }
|
135 | export {};
|