1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Allure = void 0;
|
4 | const model_js_1 = require("./model.js");
|
5 | class Allure {
|
6 | constructor(runtime) {
|
7 | this.runtime = runtime;
|
8 | }
|
9 | testCaseId(id) {
|
10 | this.currentTest.testCaseId = id;
|
11 | }
|
12 | historyId(id) {
|
13 | this.currentTest.historyId = id;
|
14 | }
|
15 | epic(epic) {
|
16 | this.label(model_js_1.LabelName.EPIC, epic);
|
17 | }
|
18 | feature(feature) {
|
19 | this.label(model_js_1.LabelName.FEATURE, feature);
|
20 | }
|
21 | story(story) {
|
22 | this.label(model_js_1.LabelName.STORY, story);
|
23 | }
|
24 | suite(name) {
|
25 | this.label(model_js_1.LabelName.SUITE, name);
|
26 | }
|
27 | parentSuite(name) {
|
28 | this.label(model_js_1.LabelName.PARENT_SUITE, name);
|
29 | }
|
30 | subSuite(name) {
|
31 | this.label(model_js_1.LabelName.SUB_SUITE, name);
|
32 | }
|
33 | label(name, value) {
|
34 | this.currentTest.addLabel(name, value);
|
35 | }
|
36 | parameter(name, value, options) {
|
37 | this.currentExecutable.parameter(name, value, options);
|
38 | }
|
39 | link(url, name, type) {
|
40 | this.currentTest.addLink(url, name, type);
|
41 | }
|
42 | issue(name, url) {
|
43 | this.link(url, name, model_js_1.LinkType.ISSUE);
|
44 | }
|
45 | tms(name, url) {
|
46 | this.link(url, name, model_js_1.LinkType.TMS);
|
47 | }
|
48 | description(markdown) {
|
49 | this.currentExecutable.description = markdown;
|
50 | }
|
51 | descriptionHtml(html) {
|
52 | this.currentExecutable.descriptionHtml = html;
|
53 | }
|
54 | owner(owner) {
|
55 | this.label(model_js_1.LabelName.OWNER, owner);
|
56 | }
|
57 | severity(severity) {
|
58 | this.label(model_js_1.LabelName.SEVERITY, severity);
|
59 | }
|
60 | layer(layer) {
|
61 | this.label(model_js_1.LabelName.LAYER, layer);
|
62 | }
|
63 | id(allureId) {
|
64 | this.label(model_js_1.LabelName.ALLURE_ID, allureId);
|
65 | }
|
66 | tag(tag) {
|
67 | this.label(model_js_1.LabelName.TAG, tag);
|
68 | }
|
69 | writeEnvironmentInfo(info) {
|
70 | this.runtime.writeEnvironmentInfo(info);
|
71 | }
|
72 | writeCategoriesDefinitions(categories) {
|
73 | this.runtime.writeCategoriesDefinitions(categories);
|
74 | }
|
75 | }
|
76 | exports.Allure = Allure;
|
77 |
|
\ | No newline at end of file |