@auxcode/auxta 1.3.24-beta.6 → 1.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -93
- package/build/cjs/AuxTA.d.ts +61 -60
- package/build/cjs/AuxTA.js +152 -150
- package/build/cjs/auxta/configs/config.d.ts +54 -54
- package/build/cjs/auxta/configs/config.js +65 -65
- package/build/cjs/auxta/enums/status-of.step.d.ts +7 -7
- package/build/cjs/auxta/enums/status-of.step.js +11 -11
- package/build/cjs/auxta/helpers/response.helper.d.ts +10 -10
- package/build/cjs/auxta/helpers/response.helper.js +15 -15
- package/build/cjs/auxta/helpers/start.helper.d.ts +1 -1
- package/build/cjs/auxta/helpers/start.helper.js +26 -26
- package/build/cjs/auxta/hooks/report.hook.d.ts +14 -14
- package/build/cjs/auxta/hooks/report.hook.js +66 -66
- package/build/cjs/auxta/models/upload.model.d.ts +32 -32
- package/build/cjs/auxta/models/upload.model.js +75 -75
- package/build/cjs/auxta/services/log.service.d.ts +26 -26
- package/build/cjs/auxta/services/log.service.js +47 -47
- package/build/cjs/auxta/services/report.service.d.ts +36 -36
- package/build/cjs/auxta/services/report.service.js +164 -164
- package/build/cjs/auxta/services/runtime.service.d.ts +16 -16
- package/build/cjs/auxta/services/runtime.service.js +41 -41
- package/build/cjs/auxta/utilities/runtime.helper.d.ts +15 -15
- package/build/cjs/auxta/utilities/runtime.helper.js +19 -19
- package/build/cjs/auxta/utilities/screenshot.helper.d.ts +2 -2
- package/build/cjs/auxta/utilities/screenshot.helper.js +36 -36
- package/build/cjs/auxta/utilities/start-suite.helper.d.ts +17 -17
- package/build/cjs/auxta/utilities/start-suite.helper.js +31 -31
- package/build/cjs/macros/helpers/Aux2faAuth.d.ts +7 -7
- package/build/cjs/macros/helpers/Aux2faAuth.js +29 -29
- package/build/cjs/macros/helpers/AuxGoogleAuth.d.ts +17 -13
- package/build/cjs/macros/helpers/AuxGoogleAuth.js +104 -104
- package/build/cjs/macros/helpers/code.helper.d.ts +21 -27
- package/build/cjs/macros/helpers/code.helper.js +201 -259
- package/build/cjs/macros/helpers/emailHelper.d.ts +19 -0
- package/build/cjs/macros/helpers/emailHelper.js +167 -0
- package/build/cjs/macros/helpers/extend-default-page.d.ts +6 -6
- package/build/cjs/macros/helpers/extend-default-page.js +89 -89
- package/build/cjs/puppeteer/puppeteer.d.ts +25 -25
- package/build/cjs/puppeteer/puppeteer.js +196 -197
- package/build/esm/AuxTA.d.ts +61 -60
- package/build/esm/AuxTA.js +123 -121
- package/build/esm/auxta/configs/config.d.ts +54 -54
- package/build/esm/auxta/configs/config.js +60 -60
- package/build/esm/auxta/enums/status-of.step.d.ts +7 -7
- package/build/esm/auxta/enums/status-of.step.js +8 -8
- package/build/esm/auxta/helpers/response.helper.d.ts +10 -10
- package/build/esm/auxta/helpers/response.helper.js +11 -11
- package/build/esm/auxta/helpers/start.helper.d.ts +1 -1
- package/build/esm/auxta/helpers/start.helper.js +24 -24
- package/build/esm/auxta/hooks/report.hook.d.ts +14 -14
- package/build/esm/auxta/hooks/report.hook.js +58 -58
- package/build/esm/auxta/models/upload.model.d.ts +32 -32
- package/build/esm/auxta/models/upload.model.js +71 -71
- package/build/esm/auxta/services/log.service.d.ts +26 -26
- package/build/esm/auxta/services/log.service.js +43 -43
- package/build/esm/auxta/services/report.service.d.ts +36 -36
- package/build/esm/auxta/services/report.service.js +150 -150
- package/build/esm/auxta/services/runtime.service.d.ts +16 -16
- package/build/esm/auxta/services/runtime.service.js +37 -37
- package/build/esm/auxta/utilities/runtime.helper.d.ts +15 -15
- package/build/esm/auxta/utilities/runtime.helper.js +15 -15
- package/build/esm/auxta/utilities/screenshot.helper.d.ts +2 -2
- package/build/esm/auxta/utilities/screenshot.helper.js +29 -29
- package/build/esm/auxta/utilities/start-suite.helper.d.ts +17 -17
- package/build/esm/auxta/utilities/start-suite.helper.js +26 -26
- package/build/esm/macros/helpers/Aux2faAuth.d.ts +7 -7
- package/build/esm/macros/helpers/Aux2faAuth.js +25 -25
- package/build/esm/macros/helpers/AuxGoogleAuth.d.ts +17 -13
- package/build/esm/macros/helpers/AuxGoogleAuth.js +100 -100
- package/build/esm/macros/helpers/code.helper.d.ts +21 -27
- package/build/esm/macros/helpers/code.helper.js +194 -252
- package/build/esm/macros/helpers/emailHelper.d.ts +19 -0
- package/build/esm/macros/helpers/emailHelper.js +160 -0
- package/build/esm/macros/helpers/extend-default-page.d.ts +6 -6
- package/build/esm/macros/helpers/extend-default-page.js +82 -82
- package/build/esm/puppeteer/puppeteer.d.ts +25 -25
- package/build/esm/puppeteer/puppeteer.js +188 -189
- package/build/tsconfig-cjs.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -32
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadModel = void 0;
|
|
4
|
-
class UploadModel {
|
|
5
|
-
constructor(org, baseUrl, digitalProduct, environment) {
|
|
6
|
-
this._reportId = '';
|
|
7
|
-
this._nextSuites = [];
|
|
8
|
-
this._currentSuite = '';
|
|
9
|
-
this._retries = 0;
|
|
10
|
-
this._organization = org;
|
|
11
|
-
this._digitalProduct = digitalProduct;
|
|
12
|
-
this._environment = environment;
|
|
13
|
-
this._baseUrl = baseUrl;
|
|
14
|
-
this._featureName = '';
|
|
15
|
-
this._scenarioName = '';
|
|
16
|
-
}
|
|
17
|
-
set currentSuite(value) {
|
|
18
|
-
this._currentSuite = value;
|
|
19
|
-
}
|
|
20
|
-
set retries(value) {
|
|
21
|
-
this._retries = value;
|
|
22
|
-
}
|
|
23
|
-
get currentSuite() {
|
|
24
|
-
return this._currentSuite;
|
|
25
|
-
}
|
|
26
|
-
get retries() {
|
|
27
|
-
return this._retries;
|
|
28
|
-
}
|
|
29
|
-
get reportId() {
|
|
30
|
-
return this._reportId;
|
|
31
|
-
}
|
|
32
|
-
set reportId(value) {
|
|
33
|
-
this._reportId = value;
|
|
34
|
-
}
|
|
35
|
-
get nextSuites() {
|
|
36
|
-
return this._nextSuites;
|
|
37
|
-
}
|
|
38
|
-
set nextSuites(value) {
|
|
39
|
-
this._nextSuites = value;
|
|
40
|
-
}
|
|
41
|
-
get digitalProduct() {
|
|
42
|
-
return this._digitalProduct;
|
|
43
|
-
}
|
|
44
|
-
set digitalProduct(value) {
|
|
45
|
-
this._digitalProduct = value;
|
|
46
|
-
}
|
|
47
|
-
get organization() {
|
|
48
|
-
return this._organization;
|
|
49
|
-
}
|
|
50
|
-
get baseUrl() {
|
|
51
|
-
return this._baseUrl;
|
|
52
|
-
}
|
|
53
|
-
set baseUrl(value) {
|
|
54
|
-
this._baseUrl = value;
|
|
55
|
-
}
|
|
56
|
-
get environment() {
|
|
57
|
-
return this._environment;
|
|
58
|
-
}
|
|
59
|
-
set environment(value) {
|
|
60
|
-
this._environment = value;
|
|
61
|
-
}
|
|
62
|
-
get featureName() {
|
|
63
|
-
return this._featureName;
|
|
64
|
-
}
|
|
65
|
-
set featureName(value) {
|
|
66
|
-
this._featureName = value;
|
|
67
|
-
}
|
|
68
|
-
get scenarioName() {
|
|
69
|
-
return this._scenarioName;
|
|
70
|
-
}
|
|
71
|
-
set scenarioName(value) {
|
|
72
|
-
this._scenarioName = value;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
exports.UploadModel = UploadModel;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadModel = void 0;
|
|
4
|
+
class UploadModel {
|
|
5
|
+
constructor(org, baseUrl, digitalProduct, environment) {
|
|
6
|
+
this._reportId = '';
|
|
7
|
+
this._nextSuites = [];
|
|
8
|
+
this._currentSuite = '';
|
|
9
|
+
this._retries = 0;
|
|
10
|
+
this._organization = org;
|
|
11
|
+
this._digitalProduct = digitalProduct;
|
|
12
|
+
this._environment = environment;
|
|
13
|
+
this._baseUrl = baseUrl;
|
|
14
|
+
this._featureName = '';
|
|
15
|
+
this._scenarioName = '';
|
|
16
|
+
}
|
|
17
|
+
set currentSuite(value) {
|
|
18
|
+
this._currentSuite = value;
|
|
19
|
+
}
|
|
20
|
+
set retries(value) {
|
|
21
|
+
this._retries = value;
|
|
22
|
+
}
|
|
23
|
+
get currentSuite() {
|
|
24
|
+
return this._currentSuite;
|
|
25
|
+
}
|
|
26
|
+
get retries() {
|
|
27
|
+
return this._retries;
|
|
28
|
+
}
|
|
29
|
+
get reportId() {
|
|
30
|
+
return this._reportId;
|
|
31
|
+
}
|
|
32
|
+
set reportId(value) {
|
|
33
|
+
this._reportId = value;
|
|
34
|
+
}
|
|
35
|
+
get nextSuites() {
|
|
36
|
+
return this._nextSuites;
|
|
37
|
+
}
|
|
38
|
+
set nextSuites(value) {
|
|
39
|
+
this._nextSuites = value;
|
|
40
|
+
}
|
|
41
|
+
get digitalProduct() {
|
|
42
|
+
return this._digitalProduct;
|
|
43
|
+
}
|
|
44
|
+
set digitalProduct(value) {
|
|
45
|
+
this._digitalProduct = value;
|
|
46
|
+
}
|
|
47
|
+
get organization() {
|
|
48
|
+
return this._organization;
|
|
49
|
+
}
|
|
50
|
+
get baseUrl() {
|
|
51
|
+
return this._baseUrl;
|
|
52
|
+
}
|
|
53
|
+
set baseUrl(value) {
|
|
54
|
+
this._baseUrl = value;
|
|
55
|
+
}
|
|
56
|
+
get environment() {
|
|
57
|
+
return this._environment;
|
|
58
|
+
}
|
|
59
|
+
set environment(value) {
|
|
60
|
+
this._environment = value;
|
|
61
|
+
}
|
|
62
|
+
get featureName() {
|
|
63
|
+
return this._featureName;
|
|
64
|
+
}
|
|
65
|
+
set featureName(value) {
|
|
66
|
+
this._featureName = value;
|
|
67
|
+
}
|
|
68
|
+
get scenarioName() {
|
|
69
|
+
return this._scenarioName;
|
|
70
|
+
}
|
|
71
|
+
set scenarioName(value) {
|
|
72
|
+
this._scenarioName = value;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.UploadModel = UploadModel;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { StatusOfStep } from "../enums/status-of.step";
|
|
2
|
-
export interface Step {
|
|
3
|
-
keyword: string;
|
|
4
|
-
name: string;
|
|
5
|
-
result: {
|
|
6
|
-
status: StatusOfStep;
|
|
7
|
-
duration: number;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export declare class LogSteps {
|
|
11
|
-
private stepLog;
|
|
12
|
-
private lastStepTime;
|
|
13
|
-
statusCounter: {
|
|
14
|
-
passed: number;
|
|
15
|
-
failed: number;
|
|
16
|
-
skipped: number;
|
|
17
|
-
suggestion: number;
|
|
18
|
-
};
|
|
19
|
-
addSuggestion(text: string): void;
|
|
20
|
-
clear(): void;
|
|
21
|
-
push(keyword: string, name: string, status: StatusOfStep): void;
|
|
22
|
-
returnScenarioReport(): Step[];
|
|
23
|
-
getStatusCount(status: StatusOfStep): number;
|
|
24
|
-
}
|
|
25
|
-
declare const log: LogSteps;
|
|
26
|
-
export default log;
|
|
1
|
+
import { StatusOfStep } from "../enums/status-of.step";
|
|
2
|
+
export interface Step {
|
|
3
|
+
keyword: string;
|
|
4
|
+
name: string;
|
|
5
|
+
result: {
|
|
6
|
+
status: StatusOfStep;
|
|
7
|
+
duration: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare class LogSteps {
|
|
11
|
+
private stepLog;
|
|
12
|
+
private lastStepTime;
|
|
13
|
+
statusCounter: {
|
|
14
|
+
passed: number;
|
|
15
|
+
failed: number;
|
|
16
|
+
skipped: number;
|
|
17
|
+
suggestion: number;
|
|
18
|
+
};
|
|
19
|
+
addSuggestion(text: string): void;
|
|
20
|
+
clear(): void;
|
|
21
|
+
push(keyword: string, name: string, status: StatusOfStep): void;
|
|
22
|
+
returnScenarioReport(): Step[];
|
|
23
|
+
getStatusCount(status: StatusOfStep): number;
|
|
24
|
+
}
|
|
25
|
+
declare const log: LogSteps;
|
|
26
|
+
export default log;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogSteps = void 0;
|
|
4
|
-
const status_of_step_1 = require("../enums/status-of.step");
|
|
5
|
-
class LogSteps {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.stepLog = [];
|
|
8
|
-
this.lastStepTime = new Date().getTime();
|
|
9
|
-
this.statusCounter = {
|
|
10
|
-
[status_of_step_1.StatusOfStep.PASSED]: 0,
|
|
11
|
-
[status_of_step_1.StatusOfStep.FAILED]: 0,
|
|
12
|
-
[status_of_step_1.StatusOfStep.SKIPPED]: 0,
|
|
13
|
-
[status_of_step_1.StatusOfStep.SUGGESTION]: 0,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
addSuggestion(text) {
|
|
17
|
-
this.statusCounter[status_of_step_1.StatusOfStep.SUGGESTION]++;
|
|
18
|
-
this.stepLog.push({
|
|
19
|
-
keyword: 'Suggestion', name: text, result: { status: status_of_step_1.StatusOfStep.SUGGESTION, duration: 0 }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
clear() {
|
|
23
|
-
this.stepLog = [];
|
|
24
|
-
this.statusCounter = {
|
|
25
|
-
[status_of_step_1.StatusOfStep.PASSED]: 0,
|
|
26
|
-
[status_of_step_1.StatusOfStep.FAILED]: 0,
|
|
27
|
-
[status_of_step_1.StatusOfStep.SKIPPED]: 0,
|
|
28
|
-
[status_of_step_1.StatusOfStep.SUGGESTION]: 0,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
push(keyword, name, status) {
|
|
32
|
-
console.log(`System log -- status: ${status} -- : ${name} `);
|
|
33
|
-
this.statusCounter[status]++;
|
|
34
|
-
const currentStep = new Date().getTime();
|
|
35
|
-
this.stepLog.push({ keyword, name, result: { status, duration: currentStep - this.lastStepTime } });
|
|
36
|
-
this.lastStepTime = currentStep;
|
|
37
|
-
}
|
|
38
|
-
returnScenarioReport() {
|
|
39
|
-
return this.stepLog;
|
|
40
|
-
}
|
|
41
|
-
getStatusCount(status) {
|
|
42
|
-
return this.statusCounter[status];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.LogSteps = LogSteps;
|
|
46
|
-
const log = new LogSteps();
|
|
47
|
-
exports.default = log;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogSteps = void 0;
|
|
4
|
+
const status_of_step_1 = require("../enums/status-of.step");
|
|
5
|
+
class LogSteps {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.stepLog = [];
|
|
8
|
+
this.lastStepTime = new Date().getTime();
|
|
9
|
+
this.statusCounter = {
|
|
10
|
+
[status_of_step_1.StatusOfStep.PASSED]: 0,
|
|
11
|
+
[status_of_step_1.StatusOfStep.FAILED]: 0,
|
|
12
|
+
[status_of_step_1.StatusOfStep.SKIPPED]: 0,
|
|
13
|
+
[status_of_step_1.StatusOfStep.SUGGESTION]: 0,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
addSuggestion(text) {
|
|
17
|
+
this.statusCounter[status_of_step_1.StatusOfStep.SUGGESTION]++;
|
|
18
|
+
this.stepLog.push({
|
|
19
|
+
keyword: 'Suggestion', name: text, result: { status: status_of_step_1.StatusOfStep.SUGGESTION, duration: 0 }
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
clear() {
|
|
23
|
+
this.stepLog = [];
|
|
24
|
+
this.statusCounter = {
|
|
25
|
+
[status_of_step_1.StatusOfStep.PASSED]: 0,
|
|
26
|
+
[status_of_step_1.StatusOfStep.FAILED]: 0,
|
|
27
|
+
[status_of_step_1.StatusOfStep.SKIPPED]: 0,
|
|
28
|
+
[status_of_step_1.StatusOfStep.SUGGESTION]: 0,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
push(keyword, name, status) {
|
|
32
|
+
console.log(`System log -- status: ${status} -- : ${name} `);
|
|
33
|
+
this.statusCounter[status]++;
|
|
34
|
+
const currentStep = new Date().getTime();
|
|
35
|
+
this.stepLog.push({ keyword, name, result: { status, duration: currentStep - this.lastStepTime } });
|
|
36
|
+
this.lastStepTime = currentStep;
|
|
37
|
+
}
|
|
38
|
+
returnScenarioReport() {
|
|
39
|
+
return this.stepLog;
|
|
40
|
+
}
|
|
41
|
+
getStatusCount(status) {
|
|
42
|
+
return this.statusCounter[status];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.LogSteps = LogSteps;
|
|
46
|
+
const log = new LogSteps();
|
|
47
|
+
exports.default = log;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Step } from "./log.service";
|
|
3
|
-
import { UploadModel } from "../models/upload.model";
|
|
4
|
-
export interface Feature {
|
|
5
|
-
featureId: string;
|
|
6
|
-
featureName: string;
|
|
7
|
-
featureUri: string;
|
|
8
|
-
status: string;
|
|
9
|
-
scenariosCount: number;
|
|
10
|
-
}
|
|
11
|
-
export interface Scenario {
|
|
12
|
-
featureId: string;
|
|
13
|
-
featureName: string;
|
|
14
|
-
featureUri: string;
|
|
15
|
-
status: string;
|
|
16
|
-
scenariosCount: number;
|
|
17
|
-
}
|
|
18
|
-
export interface Steps {
|
|
19
|
-
failedSteps: number;
|
|
20
|
-
passedSteps: number;
|
|
21
|
-
skippedSteps: number;
|
|
22
|
-
suggestedSteps: number;
|
|
23
|
-
}
|
|
24
|
-
export declare function createEmptyReport(body: any): Promise<string>;
|
|
25
|
-
export declare function uploadScenario(stepLog: Step[], scenarioName: string, screenshot?: Buffer, errMessage?: object): Promise<{
|
|
26
|
-
scenarioRef: any;
|
|
27
|
-
name: any;
|
|
28
|
-
status: any;
|
|
29
|
-
stepsCount: any;
|
|
30
|
-
}[]>;
|
|
31
|
-
export declare function uploadFeature(scenarioId: any[], scenarioName: string, uri: string, hasFailed: boolean): Promise<any>;
|
|
32
|
-
export declare function updateReport(reportId: string, feature: Feature, steps: Steps, isFinal: boolean): Promise<void>;
|
|
33
|
-
export declare function getReport(reportId: string): Promise<any>;
|
|
34
|
-
export declare function getLastDayResults(): Promise<any>;
|
|
35
|
-
export declare function postNotifications(body: UploadModel): Promise<void>;
|
|
36
|
-
export declare function postNotificationsOnFail(body: UploadModel): Promise<void>;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Step } from "./log.service";
|
|
3
|
+
import { UploadModel } from "../models/upload.model";
|
|
4
|
+
export interface Feature {
|
|
5
|
+
featureId: string;
|
|
6
|
+
featureName: string;
|
|
7
|
+
featureUri: string;
|
|
8
|
+
status: string;
|
|
9
|
+
scenariosCount: number;
|
|
10
|
+
}
|
|
11
|
+
export interface Scenario {
|
|
12
|
+
featureId: string;
|
|
13
|
+
featureName: string;
|
|
14
|
+
featureUri: string;
|
|
15
|
+
status: string;
|
|
16
|
+
scenariosCount: number;
|
|
17
|
+
}
|
|
18
|
+
export interface Steps {
|
|
19
|
+
failedSteps: number;
|
|
20
|
+
passedSteps: number;
|
|
21
|
+
skippedSteps: number;
|
|
22
|
+
suggestedSteps: number;
|
|
23
|
+
}
|
|
24
|
+
export declare function createEmptyReport(body: any): Promise<string>;
|
|
25
|
+
export declare function uploadScenario(stepLog: Step[], scenarioName: string, screenshot?: Buffer, errMessage?: object): Promise<{
|
|
26
|
+
scenarioRef: any;
|
|
27
|
+
name: any;
|
|
28
|
+
status: any;
|
|
29
|
+
stepsCount: any;
|
|
30
|
+
}[]>;
|
|
31
|
+
export declare function uploadFeature(scenarioId: any[], scenarioName: string, uri: string, hasFailed: boolean): Promise<any>;
|
|
32
|
+
export declare function updateReport(reportId: string, feature: Feature, steps: Steps, isFinal: boolean): Promise<void>;
|
|
33
|
+
export declare function getReport(reportId: string): Promise<any>;
|
|
34
|
+
export declare function getLastDayResults(): Promise<any>;
|
|
35
|
+
export declare function postNotifications(body: UploadModel): Promise<void>;
|
|
36
|
+
export declare function postNotificationsOnFail(body: UploadModel): Promise<void>;
|