@auxcode/auxta 1.3.105 → 1.3.106

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.
@@ -3,6 +3,7 @@ export declare enum StatusOfStep {
3
3
  FAILED = "failed",
4
4
  SKIPPED = "skipped",
5
5
  SUGGESTION = "suggestion",
6
- PERFORMANCE_FAIL = "performanceFailure"
6
+ PERFORMANCE_FAIL = "performanceFailure",
7
+ LOG = "log"
7
8
  }
8
9
  export default StatusOfStep;
@@ -8,5 +8,6 @@ var StatusOfStep;
8
8
  StatusOfStep["SKIPPED"] = "skipped";
9
9
  StatusOfStep["SUGGESTION"] = "suggestion";
10
10
  StatusOfStep["PERFORMANCE_FAIL"] = "performanceFailure";
11
+ StatusOfStep["LOG"] = "log";
11
12
  })(StatusOfStep || (exports.StatusOfStep = StatusOfStep = {}));
12
13
  exports.default = StatusOfStep;
@@ -40,7 +40,8 @@ function onTestEnd(body, featureName, scenarioName, statusCode, screenshotBuffer
40
40
  passedSteps: log_service_1.default.getStatusCount(status_of_step_1.StatusOfStep.PASSED),
41
41
  skippedSteps: log_service_1.default.getStatusCount(status_of_step_1.StatusOfStep.SKIPPED),
42
42
  suggestedSteps: log_service_1.default.getStatusCount(status_of_step_1.StatusOfStep.SUGGESTION),
43
- performanceFailure: log_service_1.default.getStatusCount(status_of_step_1.StatusOfStep.PERFORMANCE_FAIL)
43
+ performanceFailure: log_service_1.default.getStatusCount(status_of_step_1.StatusOfStep.PERFORMANCE_FAIL),
44
+ log: log_service_1.default.getStatusCount(status_of_step_1.StatusOfStep.LOG)
44
45
  };
45
46
  isFinal = (!(body.nextSuites && body.nextSuites.length > 0));
46
47
  yield (0, report_service_1.updateReport)(body.reportId, scenario, stepCounts, isFinal);
@@ -20,6 +20,7 @@ export declare class LogSteps {
20
20
  skipped: number;
21
21
  suggestion: number;
22
22
  performanceFailure: number;
23
+ log: number;
23
24
  };
24
25
  private stepLog;
25
26
  private lastStepTime;
@@ -9,7 +9,8 @@ class LogSteps {
9
9
  [status_of_step_1.StatusOfStep.FAILED]: 0,
10
10
  [status_of_step_1.StatusOfStep.SKIPPED]: 0,
11
11
  [status_of_step_1.StatusOfStep.SUGGESTION]: 0,
12
- [status_of_step_1.StatusOfStep.PERFORMANCE_FAIL]: 0
12
+ [status_of_step_1.StatusOfStep.PERFORMANCE_FAIL]: 0,
13
+ [status_of_step_1.StatusOfStep.LOG]: 0
13
14
  };
14
15
  this.stepLog = [];
15
16
  this.lastStepTime = new Date().getTime();
@@ -55,7 +56,8 @@ class LogSteps {
55
56
  [status_of_step_1.StatusOfStep.FAILED]: 0,
56
57
  [status_of_step_1.StatusOfStep.SKIPPED]: 0,
57
58
  [status_of_step_1.StatusOfStep.SUGGESTION]: 0,
58
- [status_of_step_1.StatusOfStep.PERFORMANCE_FAIL]: 0
59
+ [status_of_step_1.StatusOfStep.PERFORMANCE_FAIL]: 0,
60
+ [status_of_step_1.StatusOfStep.LOG]: 0
59
61
  };
60
62
  }
61
63
  push(keyword, tag, name, status, screenshot = new ArrayBuffer(0), imageCompareKey = '') {
@@ -15,6 +15,7 @@ export interface Steps {
15
15
  skippedSteps: number;
16
16
  suggestedSteps: number;
17
17
  performanceFailure: number;
18
+ log: number;
18
19
  }
19
20
  export declare function setTimeZone(): Promise<any>;
20
21
  export declare function setEmailProvider(): Promise<any>;
@@ -26,7 +26,9 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
26
26
  log_service_1.default.push(keyword, log_service_1.default.tag, name, status, screenshot);
27
27
  }
28
28
  setTag(tag) {
29
- log_service_1.default.tag = tag;
29
+ if (!log_service_1.default.tag || log_service_1.default.tag === 'default') {
30
+ log_service_1.default.tag = tag;
31
+ }
30
32
  }
31
33
  clearTag() {
32
34
  log_service_1.default.tag = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "1.3.105",
3
+ "version": "1.3.106",
4
4
  "description": "",
5
5
  "main": "./build/AuxTA.js",
6
6
  "types": "./build/AuxTA.d.ts",