@auxcode/auxta 0.5.3 → 0.5.4

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.
Files changed (71) hide show
  1. package/build/cjs/AuxTA.d.ts +43 -0
  2. package/build/cjs/AuxTA.js +122 -0
  3. package/build/cjs/auxta/configs/config.d.ts +51 -0
  4. package/build/cjs/auxta/configs/config.js +66 -0
  5. package/build/cjs/auxta/enums/status-of.step.d.ts +7 -0
  6. package/build/cjs/auxta/enums/status-of.step.js +11 -0
  7. package/build/cjs/auxta/helpers/response.helper.d.ts +10 -0
  8. package/build/cjs/auxta/helpers/response.helper.js +15 -0
  9. package/build/cjs/auxta/helpers/start.helper.d.ts +1 -0
  10. package/build/cjs/auxta/helpers/start.helper.js +17 -0
  11. package/build/cjs/auxta/hooks/report.hook.d.ts +4 -0
  12. package/build/cjs/auxta/hooks/report.hook.js +53 -0
  13. package/build/cjs/auxta/models/upload.model.d.ts +20 -0
  14. package/build/cjs/auxta/models/upload.model.js +47 -0
  15. package/build/cjs/auxta/services/log.service.d.ts +26 -0
  16. package/build/cjs/auxta/services/log.service.js +47 -0
  17. package/build/cjs/auxta/services/report.service.d.ts +36 -0
  18. package/build/cjs/auxta/services/report.service.js +141 -0
  19. package/build/cjs/auxta/services/runtime.service.d.ts +16 -0
  20. package/build/cjs/auxta/services/runtime.service.js +41 -0
  21. package/build/cjs/auxta/utilities/runtime.helper.d.ts +15 -0
  22. package/build/cjs/auxta/utilities/runtime.helper.js +19 -0
  23. package/build/cjs/auxta/utilities/screenshot.helper.d.ts +2 -0
  24. package/build/cjs/auxta/utilities/screenshot.helper.js +25 -0
  25. package/build/cjs/auxta/utilities/start-suite.helper.d.ts +1 -0
  26. package/build/cjs/auxta/utilities/start-suite.helper.js +21 -0
  27. package/build/cjs/macros/helpers/code.helper.d.ts +22 -0
  28. package/build/cjs/macros/helpers/code.helper.js +165 -0
  29. package/build/cjs/puppeteer/puppeteer.d.ts +13 -0
  30. package/build/cjs/puppeteer/puppeteer.js +143 -0
  31. package/build/esm/AuxTA.d.ts +43 -0
  32. package/{src/AuxTA.ts → build/esm/AuxTA.js} +39 -46
  33. package/build/esm/auxta/configs/config.d.ts +51 -0
  34. package/build/esm/auxta/configs/config.js +61 -0
  35. package/build/esm/auxta/enums/status-of.step.d.ts +7 -0
  36. package/build/esm/auxta/enums/status-of.step.js +8 -0
  37. package/build/esm/auxta/helpers/response.helper.d.ts +10 -0
  38. package/{src/auxta/helpers/response.helper.ts → build/esm/auxta/helpers/response.helper.js} +1 -1
  39. package/build/esm/auxta/helpers/start.helper.d.ts +1 -0
  40. package/{src/auxta/helpers/start.helper.ts → build/esm/auxta/helpers/start.helper.js} +6 -5
  41. package/build/esm/auxta/hooks/report.hook.d.ts +4 -0
  42. package/{src/auxta/hooks/report.hook.ts → build/esm/auxta/hooks/report.hook.js} +17 -24
  43. package/build/esm/auxta/models/upload.model.d.ts +20 -0
  44. package/build/esm/auxta/models/upload.model.js +43 -0
  45. package/build/esm/auxta/services/log.service.d.ts +26 -0
  46. package/build/esm/auxta/services/log.service.js +43 -0
  47. package/build/esm/auxta/services/report.service.d.ts +36 -0
  48. package/build/esm/auxta/services/report.service.js +127 -0
  49. package/build/esm/auxta/services/runtime.service.d.ts +16 -0
  50. package/{src/auxta/services/runtime.service.ts → build/esm/auxta/services/runtime.service.js} +14 -28
  51. package/build/esm/auxta/utilities/runtime.helper.d.ts +15 -0
  52. package/{src/auxta/utilities/runtime.helper.ts → build/esm/auxta/utilities/runtime.helper.js} +3 -17
  53. package/build/esm/auxta/utilities/screenshot.helper.d.ts +2 -0
  54. package/{src/auxta/utilities/screenshot.helper.ts → build/esm/auxta/utilities/screenshot.helper.js} +10 -11
  55. package/build/esm/auxta/utilities/start-suite.helper.d.ts +1 -0
  56. package/build/esm/auxta/utilities/start-suite.helper.js +14 -0
  57. package/build/esm/macros/helpers/code.helper.d.ts +22 -0
  58. package/{src/macros/helpers/code.helper.ts → build/esm/macros/helpers/code.helper.js} +50 -98
  59. package/build/esm/puppeteer/puppeteer.d.ts +13 -0
  60. package/build/esm/puppeteer/puppeteer.js +136 -0
  61. package/build/tsconfig-cjs.tsbuildinfo +1 -0
  62. package/build/tsconfig.tsbuildinfo +1 -0
  63. package/package.json +9 -4
  64. package/src/auxta/configs/config.ts +0 -48
  65. package/src/auxta/enums/status-of.step.ts +0 -7
  66. package/src/auxta/models/upload.model.ts +0 -62
  67. package/src/auxta/services/log.service.ts +0 -58
  68. package/src/auxta/services/report.service.ts +0 -189
  69. package/src/auxta/utilities/start-suite.helper.ts +0 -16
  70. package/src/puppeteer/puppeteer.ts +0 -145
  71. package/tsconfig.json +0 -65
@@ -0,0 +1,136 @@
1
+ import chromium from 'chrome-aws-lambda';
2
+ import log from "../auxta/services/log.service";
3
+ import { captureScreenshot } from "../auxta/utilities/screenshot.helper";
4
+ import { onTestEnd } from "../auxta/hooks/report.hook";
5
+ import auxta from "../AuxTA";
6
+ import { StatusOfStep } from "../auxta/enums/status-of.step";
7
+ import { config } from "./../auxta/configs/config";
8
+ import { postNotificationsOnFail } from "../auxta/services/report.service";
9
+ export class Puppeteer {
10
+ async startBrowser() {
11
+ let args = [
12
+ '--start-maximized',
13
+ '--no-sandbox',
14
+ '--disable-setuid-sandbox',
15
+ '--disable-dev-shm-usage',
16
+ '--single-process'
17
+ ];
18
+ if (process.env.ENVIRONMENT != 'LOCAL')
19
+ args.push(`--window-size=${config.screenWidth},${config.screenHeight}`);
20
+ this.browser = await chromium.puppeteer.launch({
21
+ executablePath: process.env.ENVIRONMENT === 'LOCAL' ? undefined : await chromium.executablePath,
22
+ args,
23
+ ignoreDefaultArgs: ["--enable-automation"],
24
+ defaultViewport: process.env.ENVIRONMENT === 'LOCAL' ? null : {
25
+ width: config.screenWidth,
26
+ height: config.screenHeight
27
+ },
28
+ headless: process.env.ENVIRONMENT == 'LOCAL' ? false : chromium.headless
29
+ });
30
+ this.defaultPage = (await this.browser.pages())[0];
31
+ await this.defaultPage.goto(config.baseURL, { waitUntil: 'networkidle0' });
32
+ await this.defaultPage.waitForNetworkIdle();
33
+ }
34
+ async close() {
35
+ if (this.browser) {
36
+ let pages = await this.browser.pages();
37
+ await Promise.all(pages.map((page) => page.close()));
38
+ await this.browser.close();
39
+ }
40
+ }
41
+ async run(event, callback, featureName = 'Test feature', scenarioName = 'Test scenario', uploadModel, close) {
42
+ try {
43
+ if (uploadModel === undefined)
44
+ uploadModel = auxta.getUploadModel();
45
+ if (close === undefined)
46
+ close = Puppeteer.setupHeader(event, uploadModel);
47
+ let screenshotBuffer;
48
+ let errMessage;
49
+ let statusCode = 200;
50
+ let consoleStack = [];
51
+ try {
52
+ await log.push('When', `Starting puppeteer process`, StatusOfStep.PASSED);
53
+ await this.startBrowser();
54
+ this.defaultPage.on('console', message => consoleStack.push(`${message.type().substr(0, 3).toUpperCase()} ${message.text()}`))
55
+ .on('pageerror', ({ message }) => consoleStack.push(message))
56
+ .on('response', response => consoleStack.push(`${response.status()} ${response.url()}`))
57
+ .on('requestfailed', request => consoleStack.push(`${request.failure() !== null ? request.failure()?.errorText : ""} ${request.url()}`));
58
+ await callback(event);
59
+ log.push('When', `Finished puppeteer process`, StatusOfStep.PASSED);
60
+ }
61
+ catch (err) {
62
+ console.log("Error", err);
63
+ errMessage = err;
64
+ statusCode = 500;
65
+ screenshotBuffer = await captureScreenshot();
66
+ log.push('When', `Finished puppeteer process`, StatusOfStep.FAILED);
67
+ await postNotificationsOnFail(uploadModel);
68
+ }
69
+ let url = this.defaultPage.url();
70
+ if (close)
71
+ await this.close();
72
+ await onTestEnd(uploadModel, featureName, scenarioName, statusCode, screenshotBuffer, !errMessage ? undefined : {
73
+ currentPageUrl: url,
74
+ console: consoleStack,
75
+ error: errMessage
76
+ });
77
+ }
78
+ catch (e) {
79
+ console.log("Lib error:", e);
80
+ }
81
+ finally {
82
+ log.clear();
83
+ }
84
+ }
85
+ async runRPA(event, callback, close) {
86
+ let errMessage;
87
+ try {
88
+ if (close === undefined) {
89
+ if (event.queryStringParameters.close) {
90
+ close = event.queryStringParameters.close === "true";
91
+ }
92
+ else {
93
+ close = true;
94
+ }
95
+ }
96
+ let consoleStack = [];
97
+ try {
98
+ await log.push('When', `Starting puppeteer process`, StatusOfStep.PASSED);
99
+ await this.startBrowser();
100
+ this.defaultPage.on('console', message => consoleStack.push(`${message.type().substr(0, 3).toUpperCase()} ${message.text()}`))
101
+ .on('pageerror', ({ message }) => consoleStack.push(message))
102
+ .on('response', response => consoleStack.push(`${response.status()} ${response.url()}`))
103
+ .on('requestfailed', request => consoleStack.push(`${request.failure() !== null ? request.failure()?.errorText : ""} ${request.url()}`));
104
+ await callback(event);
105
+ log.push('When', `Finished puppeteer process`, StatusOfStep.PASSED);
106
+ }
107
+ catch (err) {
108
+ errMessage = err;
109
+ log.push('When', `Finished puppeteer process`, StatusOfStep.FAILED);
110
+ return errMessage;
111
+ }
112
+ if (close)
113
+ await this.close();
114
+ }
115
+ catch (e) {
116
+ console.log("Lib error:", e);
117
+ }
118
+ finally {
119
+ log.clear();
120
+ }
121
+ return true;
122
+ }
123
+ static setupHeader(event, uploadModel) {
124
+ let close = true;
125
+ if (process.env.ENVIRONMENT !== 'LOCAL' && event.body) {
126
+ const body = JSON.parse(event.body);
127
+ uploadModel.reportId = body.reportId;
128
+ uploadModel.nextSuites = body.nextSuites;
129
+ }
130
+ else if (event.queryStringParameters.close) {
131
+ close = event.queryStringParameters.close === "true";
132
+ }
133
+ return close;
134
+ }
135
+ }
136
+ export default new Puppeteer();
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/devtools-protocol/types/protocol.d.ts","../node_modules/devtools-protocol/types/protocol-mapping.d.ts","../node_modules/puppeteer-core/lib/types.d.ts","../node_modules/chrome-aws-lambda/typings/chrome-aws-lambda.d.ts","../node_modules/chrome-aws-lambda/build/index.d.ts","../src/auxta/enums/status-of.step.ts","../src/auxta/services/log.service.ts","../src/auxta/utilities/screenshot.helper.ts","../node_modules/axios/index.d.ts","../src/auxta/configs/config.ts","../src/auxta/models/upload.model.ts","../src/auxta/services/report.service.ts","../src/auxta/utilities/start-suite.helper.ts","../src/auxta/hooks/report.hook.ts","../src/puppeteer/puppeteer.ts","../src/macros/helpers/code.helper.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/dotenv/types/index.d.ts","../src/auxta.ts","../src/auxta/helpers/response.helper.ts","../src/auxta/helpers/start.helper.ts","../src/auxta/services/runtime.service.ts","../src/auxta/utilities/runtime.helper.ts","../node_modules/@types/keyv/index.d.ts","../node_modules/@types/http-cache-semantics/index.d.ts","../node_modules/@types/responselike/index.d.ts","../node_modules/@types/cacheable-request/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"6adbf5efd0e374ff5f427a4f26a5a413e9734eee5067a0e86da69aea41910b52","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","048f50361b3948e92aca0148d6a7c566843164830c1aa70962179052f576479c","6d18352a53bff1aae48a9dd3b7111c442b41992354be6b6bcb24749bb9a02ddf",{"version":"c81e051c9a85bb7e97b6b90465fcf8e89369d6c5df0a2a0f31694c75faab151c","affectsGlobalScope":true},"33fcab9da3566d329c6fa57fe8534329bc4f9caf29ed68976c3433eed3922727","e8376775255c45e52b7381ed7aa78c83d5231c9313475d35f2afe9836762690e","5ed5d687b07ef88b3bc171fffdf6a1b23f77d09e3fb32ec698a132965bcfbdd4","457e54699b24648210ff96f826224f9c9a94dd445e4abff7a0e95203d4e8f284","7ea948fc14ee8420396167b2b0958850a60e784d87d5c7471549341238563dd2","644c59289eb29590d65062c5b64dda9ef2797ce120071265a9099436f0d41a16","17a99582ee7a724d8b7b242d800148cc61ff9b5af17b561f0856232308f28cd1","75c00cbca3606749e0901e902d1ec4ae0a3fc45b320b5e6503a8f451535868ac","4f6266a101e7c3b64ebacf7ebf2e25dd7fa8308c6568ad9492d61cf56cab67cc","dd9f82c320a48c83d59b7d18da15f079700dae81bf39a684a4d98b3e26227bb4","eb5e5565ab7be9da6256cebaa8548f2fc12e40f9e094aaae643800513d59b319","8afa2cc590cbf0ccdba8c38a52f52c7f18caff40bd774386bd685727be540230","56f87f6cef2cf2523a5443fcd709df7a39bff27b233d134d8508545dbfede720","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","5533392c50c51b1a5c32b89f13145db929c574ef1c5949cf67a074a05ea107d9","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"bd1a08e30569b0fb2f0b21035eb9b039871f68faa9b98accf847e9c878c5e0a9","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a7971f9fb2a32ec7788ec6cda9d7a33c02023dfe9a62db2030ad1359649d8050","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1cdb8f094b969dcc183745dc88404e2d8fcf2a858c6e7cc2441011476573238e","25d1590e0ea122be559be7fc5c52782c4f2db402e2086ce22e55e042fcd40b19","7a5c3123cd4b6df78508dbc7211b301c4b6d5dc69db21c91af916af0ed648081","2c9662746c4559d0550da748e7af7fc5bf8e2ae5f20dae0a246700f84ce7afaf","f9a1958f7ba7864cc63f74c09ddae1488bc6f273f779d0861f4c564f80ad18a1","20930f47855168abda8a30d794953b7e3c06bb33e745509485472058787b3443","62498654aeabc352418a726621f83a62962c9f0f67430b660b7c6cdf1c2328fc","82169f198ffdfc787fba368ccfad2b2d8ef3712f3c696df94ac13f6884bbbe2d","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noUnusedLocals":true,"noUnusedParameters":false,"outDir":"./cjs","removeComments":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":false,"strict":true,"target":7},"fileIdsList":[[75,78,102,103,110,117,118,119],[103],[75,103,110],[60,103],[63,103],[64,69,103],[65,75,76,83,92,102,103],[65,66,75,83,103],[67,103],[68,69,76,84,103],[69,92,99,103],[70,72,75,83,103],[71,103],[72,73,103],[74,75,103],[75,103],[75,76,77,92,102,103],[75,76,77,92,103],[78,83,92,102,103],[75,76,78,79,83,92,99,102,103],[78,80,92,99,102,103],[60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],[75,81,103],[82,102,103],[72,75,83,92,103],[84,103],[85,103],[63,86,103],[87,101,103,107],[88,103],[89,103],[75,90,103],[90,91,103,105],[75,92,93,94,103],[92,94,103],[92,93,103],[95,103],[96,103],[75,97,98,103],[97,98,103],[69,83,99,103],[100,103],[83,101,103],[64,78,89,102,103],[69,103],[92,103,104],[103,105],[103,106],[64,69,75,77,86,92,102,103,105,107],[92,103,108],[78,92,103,110],[75,92,103,110],[46,47,103],[44,103],[103,110],[44,45,65,92,103],[49,53,54,55,56,58,59,76,85,103,111],[49,50,54,55,56,85,103],[49,103],[50,52,53,54,103],[103,115],[58,103],[52,53,103],[49,50,53,58,103],[46,47,48,49,50,51,53,54,55,57,103,112]],"referencedMap":[[120,1],[118,2],[117,3],[60,4],[61,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,14],[74,15],[75,16],[76,17],[77,18],[62,2],[109,2],[78,19],[79,20],[80,21],[110,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,32],[91,33],[92,34],[94,35],[93,36],[95,37],[96,38],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[119,51],[121,52],[52,2],[48,53],[47,53],[45,54],[44,2],[111,55],[46,56],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[43,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[112,57],[53,2],[49,2],[113,2],[114,27],[57,58],[54,2],[50,59],[55,60],[115,2],[116,61],[51,62],[56,63],[59,64],[58,65]],"exportedModulesMap":[[120,1],[118,2],[117,3],[60,4],[61,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,14],[74,15],[75,16],[76,17],[77,18],[62,2],[109,2],[78,19],[79,20],[80,21],[110,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,32],[91,33],[92,34],[94,35],[93,36],[95,37],[96,38],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[119,51],[121,52],[52,2],[48,53],[47,53],[45,54],[44,2],[111,55],[46,56],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[43,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[112,57],[53,2],[49,2],[113,2],[114,27],[57,58],[54,2],[50,59],[55,60],[115,2],[116,61],[51,62],[56,63],[59,64],[58,65]],"semanticDiagnosticsPerFile":[120,118,117,60,61,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,62,109,78,79,80,110,81,82,83,84,85,86,87,88,89,90,91,92,94,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,119,121,52,48,47,45,44,111,46,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,43,41,37,38,39,40,1,42,11,10,112,53,49,113,114,57,54,50,55,115,116,51,56,59,58]},"version":"4.5.2"}
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/devtools-protocol/types/protocol.d.ts","../node_modules/devtools-protocol/types/protocol-mapping.d.ts","../node_modules/puppeteer-core/lib/types.d.ts","../node_modules/chrome-aws-lambda/typings/chrome-aws-lambda.d.ts","../node_modules/chrome-aws-lambda/build/index.d.ts","../src/auxta/enums/status-of.step.ts","../src/auxta/services/log.service.ts","../src/auxta/utilities/screenshot.helper.ts","../node_modules/axios/index.d.ts","../src/auxta/configs/config.ts","../src/auxta/models/upload.model.ts","../src/auxta/services/report.service.ts","../src/auxta/utilities/start-suite.helper.ts","../src/auxta/hooks/report.hook.ts","../src/puppeteer/puppeteer.ts","../src/macros/helpers/code.helper.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/dotenv/types/index.d.ts","../src/auxta.ts","../src/auxta/helpers/response.helper.ts","../src/auxta/helpers/start.helper.ts","../src/auxta/services/runtime.service.ts","../src/auxta/utilities/runtime.helper.ts","../node_modules/@types/keyv/index.d.ts","../node_modules/@types/http-cache-semantics/index.d.ts","../node_modules/@types/responselike/index.d.ts","../node_modules/@types/cacheable-request/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"6adbf5efd0e374ff5f427a4f26a5a413e9734eee5067a0e86da69aea41910b52","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","048f50361b3948e92aca0148d6a7c566843164830c1aa70962179052f576479c","6d18352a53bff1aae48a9dd3b7111c442b41992354be6b6bcb24749bb9a02ddf",{"version":"c81e051c9a85bb7e97b6b90465fcf8e89369d6c5df0a2a0f31694c75faab151c","affectsGlobalScope":true},"33fcab9da3566d329c6fa57fe8534329bc4f9caf29ed68976c3433eed3922727","e8376775255c45e52b7381ed7aa78c83d5231c9313475d35f2afe9836762690e","5ed5d687b07ef88b3bc171fffdf6a1b23f77d09e3fb32ec698a132965bcfbdd4","457e54699b24648210ff96f826224f9c9a94dd445e4abff7a0e95203d4e8f284","7ea948fc14ee8420396167b2b0958850a60e784d87d5c7471549341238563dd2","644c59289eb29590d65062c5b64dda9ef2797ce120071265a9099436f0d41a16","17a99582ee7a724d8b7b242d800148cc61ff9b5af17b561f0856232308f28cd1","75c00cbca3606749e0901e902d1ec4ae0a3fc45b320b5e6503a8f451535868ac","4f6266a101e7c3b64ebacf7ebf2e25dd7fa8308c6568ad9492d61cf56cab67cc","dd9f82c320a48c83d59b7d18da15f079700dae81bf39a684a4d98b3e26227bb4","eb5e5565ab7be9da6256cebaa8548f2fc12e40f9e094aaae643800513d59b319","8afa2cc590cbf0ccdba8c38a52f52c7f18caff40bd774386bd685727be540230","56f87f6cef2cf2523a5443fcd709df7a39bff27b233d134d8508545dbfede720","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","5533392c50c51b1a5c32b89f13145db929c574ef1c5949cf67a074a05ea107d9","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"bd1a08e30569b0fb2f0b21035eb9b039871f68faa9b98accf847e9c878c5e0a9","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a7971f9fb2a32ec7788ec6cda9d7a33c02023dfe9a62db2030ad1359649d8050","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1cdb8f094b969dcc183745dc88404e2d8fcf2a858c6e7cc2441011476573238e","25d1590e0ea122be559be7fc5c52782c4f2db402e2086ce22e55e042fcd40b19","7a5c3123cd4b6df78508dbc7211b301c4b6d5dc69db21c91af916af0ed648081","2c9662746c4559d0550da748e7af7fc5bf8e2ae5f20dae0a246700f84ce7afaf","f9a1958f7ba7864cc63f74c09ddae1488bc6f273f779d0861f4c564f80ad18a1","20930f47855168abda8a30d794953b7e3c06bb33e745509485472058787b3443","62498654aeabc352418a726621f83a62962c9f0f67430b660b7c6cdf1c2328fc","82169f198ffdfc787fba368ccfad2b2d8ef3712f3c696df94ac13f6884bbbe2d","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":6,"noUnusedLocals":true,"noUnusedParameters":false,"outDir":"./esm","removeComments":true,"rootDir":"../src","skipLibCheck":true,"sourceMap":false,"strict":true,"target":7},"fileIdsList":[[75,78,102,103,110,117,118,119],[103],[75,103,110],[60,103],[63,103],[64,69,103],[65,75,76,83,92,102,103],[65,66,75,83,103],[67,103],[68,69,76,84,103],[69,92,99,103],[70,72,75,83,103],[71,103],[72,73,103],[74,75,103],[75,103],[75,76,77,92,102,103],[75,76,77,92,103],[78,83,92,102,103],[75,76,78,79,83,92,99,102,103],[78,80,92,99,102,103],[60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],[75,81,103],[82,102,103],[72,75,83,92,103],[84,103],[85,103],[63,86,103],[87,101,103,107],[88,103],[89,103],[75,90,103],[90,91,103,105],[75,92,93,94,103],[92,94,103],[92,93,103],[95,103],[96,103],[75,97,98,103],[97,98,103],[69,83,99,103],[100,103],[83,101,103],[64,78,89,102,103],[69,103],[92,103,104],[103,105],[103,106],[64,69,75,77,86,92,102,103,105,107],[92,103,108],[78,92,103,110],[75,92,103,110],[46,47,103],[44,103],[103,110],[44,45,65,92,103],[49,53,54,55,56,58,59,76,85,103,111],[49,50,54,55,56,85,103],[49,103],[50,52,53,54,103],[103,115],[58,103],[52,53,103],[49,50,53,58,103],[46,47,48,49,50,51,53,54,55,57,103,112]],"referencedMap":[[120,1],[118,2],[117,3],[60,4],[61,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,14],[74,15],[75,16],[76,17],[77,18],[62,2],[109,2],[78,19],[79,20],[80,21],[110,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,32],[91,33],[92,34],[94,35],[93,36],[95,37],[96,38],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[119,51],[121,52],[52,2],[48,53],[47,53],[45,54],[44,2],[111,55],[46,56],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[43,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[112,57],[53,2],[49,2],[113,2],[114,27],[57,58],[54,2],[50,59],[55,60],[115,2],[116,61],[51,62],[56,63],[59,64],[58,65]],"exportedModulesMap":[[120,1],[118,2],[117,3],[60,4],[61,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,13],[72,14],[73,14],[74,15],[75,16],[76,17],[77,18],[62,2],[109,2],[78,19],[79,20],[80,21],[110,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,32],[91,33],[92,34],[94,35],[93,36],[95,37],[96,38],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[107,49],[108,50],[119,51],[121,52],[52,2],[48,53],[47,53],[45,54],[44,2],[111,55],[46,56],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[43,2],[41,2],[37,2],[38,2],[39,2],[40,2],[1,2],[42,2],[11,2],[10,2],[112,57],[53,2],[49,2],[113,2],[114,27],[57,58],[54,2],[50,59],[55,60],[115,2],[116,61],[51,62],[56,63],[59,64],[58,65]],"semanticDiagnosticsPerFile":[120,118,117,60,61,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,62,109,78,79,80,110,81,82,83,84,85,86,87,88,89,90,91,92,94,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,119,121,52,48,47,45,44,111,46,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,43,41,37,38,39,40,1,42,11,10,112,53,49,113,114,57,54,50,55,115,116,51,56,59,58]},"version":"4.5.2"}
package/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "",
5
- "main": "src/AuxTA.ts",
5
+ "main": "./build/cjs/AuxTA.js",
6
+ "module": "./build/esm/AuxTA.js",
7
+ "files": [
8
+ "build/"
9
+ ],
6
10
  "scripts": {
7
- "build": "tsc",
8
- "test": "npm run build & node ./build/AuxTA.js"
11
+ "tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
12
+ "prepublish": "npm run tsc",
13
+ "test": "npm run prepublish & node ./build/AuxTA.js"
9
14
  },
10
15
  "author": "auxcode",
11
16
  "license": "ISC",
@@ -1,48 +0,0 @@
1
- export function setupConfig(jsonConfig: any) {
2
- if (!jsonConfig.baseURL) throw new Error("baseURL");
3
- config.baseURL = jsonConfig.baseURL;
4
- if (!jsonConfig.digitalProduct) throw new Error("digitalProduct");
5
- config.digitalProduct = jsonConfig.digitalProduct;
6
- if (!jsonConfig.testsURL) throw new Error("testsURL");
7
- config.netlifyPath = (process.env.ENVIRONMENT == 'LOCAL') ? 'http://localhost:9999/' : jsonConfig.testsURL;
8
- if (!jsonConfig.organization) throw new Error("organization");
9
- config.organization = jsonConfig.organization;
10
- if (!jsonConfig.token) throw new Error("token");
11
- config.token = jsonConfig.token;
12
- if (!jsonConfig.email) throw new Error("email");
13
- config.auxtaCredentials.email = jsonConfig.email;
14
- if (!jsonConfig.password) throw new Error("password");
15
- config.auxtaCredentials.password = jsonConfig.password;
16
- if (!jsonConfig.suitesList) throw new Error("suitesList");
17
- config.suitesList = jsonConfig.suitesList;
18
- if (jsonConfig.timeout) config.timeout = jsonConfig.timeout;
19
- if (jsonConfig.screenWidth) config.screenWidth = jsonConfig.screenWidth;
20
- if (jsonConfig.screenHeight) config.screenHeight = jsonConfig.screenHeight;
21
- return config;
22
- }
23
-
24
- export function setupOverrideConfig(overrideConfig: any){
25
- if (overrideConfig.baseURL) config.baseURL = overrideConfig.baseURL;
26
- if (overrideConfig.digitalProduct) config.digitalProduct = overrideConfig.digitalProduct;
27
- if (overrideConfig.screenWidth) config.screenWidth = overrideConfig.screenWidth;
28
- if (overrideConfig.screenHeight) config.screenHeight = overrideConfig.screenHeight;
29
- return config;
30
- }
31
-
32
- export let config = {
33
- auxtaURL: "https://auxta.live/.netlify/functions/",
34
- baseURL: "",
35
- siteURL: "",
36
- organization: "",
37
- netlifyPath: "",
38
- digitalProduct: "",
39
- token: "",
40
- screenWidth: 1920,
41
- screenHeight: 1080,
42
- timeout: 10000,
43
- suitesList: [],
44
- auxtaCredentials: {
45
- email: "",
46
- password: "",
47
- },
48
- }
@@ -1,7 +0,0 @@
1
- export enum StatusOfStep {
2
- PASSED = 'passed',
3
- FAILED = 'failed',
4
- SKIPPED = 'skipped',
5
- SUGGESTION = 'suggestion',
6
- }
7
- export default StatusOfStep;
@@ -1,62 +0,0 @@
1
-
2
- export class UploadModel {
3
- private _reportId: string;
4
- private _nextSuites: [];
5
- private _digitalProduct: string;
6
- private _baseUrl: string;
7
- private readonly _organization: string;
8
- private _environment: string;
9
-
10
- constructor(org: string, baseUrl: string, digitalProduct: string, environment: string) {
11
- this._reportId = '';
12
- this._nextSuites = [];
13
- this._organization = org;
14
- this._digitalProduct = digitalProduct;
15
- this._environment = environment;
16
- this._baseUrl = baseUrl;
17
- }
18
-
19
- get reportId(): string {
20
- return this._reportId;
21
- }
22
-
23
- set reportId(value: string) {
24
- this._reportId = value;
25
- }
26
-
27
- get nextSuites(): [] {
28
- return this._nextSuites;
29
- }
30
-
31
- set nextSuites(value: []) {
32
- this._nextSuites = value;
33
- }
34
-
35
- get digitalProduct(): string {
36
- return this._digitalProduct;
37
- }
38
-
39
- set digitalProduct(value: string) {
40
- this._digitalProduct = value;
41
- }
42
-
43
- get organization(): string {
44
- return this._organization;
45
- }
46
-
47
- get baseUrl(): string {
48
- return this._baseUrl;
49
- }
50
-
51
- set baseUrl(value: string) {
52
- this._baseUrl = value;
53
- }
54
-
55
- get environment(): string {
56
- return this._environment;
57
- }
58
-
59
- set environment(value: string) {
60
- this._environment = value;
61
- }
62
- }
@@ -1,58 +0,0 @@
1
- import { StatusOfStep } from "../enums/status-of.step";
2
-
3
- export interface Step {
4
- keyword: string,
5
- name: string,
6
- result: {
7
- status: StatusOfStep,
8
- duration: number
9
- }
10
- }
11
-
12
- export class LogSteps {
13
- private stepLog: Step[] = [];
14
- private lastStepTime = new Date().getTime();
15
- public statusCounter = {
16
- [StatusOfStep.PASSED]: 0,
17
- [StatusOfStep.FAILED]: 0,
18
- [StatusOfStep.SKIPPED]: 0,
19
- [StatusOfStep.SUGGESTION]: 0,
20
- }
21
-
22
- public addSuggestion(text: string) {
23
- this.statusCounter[StatusOfStep.SUGGESTION]++;
24
- this.stepLog.push({
25
- keyword: 'Suggestion', name: text, result:
26
- {status: StatusOfStep.SUGGESTION, duration: 0}
27
- });
28
- }
29
-
30
- public clear() {
31
- this.stepLog = [];
32
- this.statusCounter = {
33
- [StatusOfStep.PASSED]: 0,
34
- [StatusOfStep.FAILED]: 0,
35
- [StatusOfStep.SKIPPED]: 0,
36
- [StatusOfStep.SUGGESTION]: 0,
37
- }
38
- }
39
-
40
- public push(keyword: string, name: string, status: StatusOfStep) {
41
- console.log(`System log -- status: ${status} -- : ${name} `);
42
- this.statusCounter[status]++;
43
- const currentStep = new Date().getTime();
44
- this.stepLog.push({keyword, name, result: {status, duration: currentStep - this.lastStepTime}});
45
- this.lastStepTime = currentStep;
46
- }
47
-
48
- public returnScenarioReport() {
49
- return this.stepLog;
50
- }
51
-
52
- public getStatusCount(status: StatusOfStep): number {
53
- return this.statusCounter[status];
54
- }
55
- }
56
-
57
- const log = new LogSteps();
58
- export default log;
@@ -1,189 +0,0 @@
1
- import axios from "axios";
2
- import { Step } from "./log.service";
3
- import { config } from "../configs/config";
4
- import { UploadModel } from "../models/upload.model";
5
-
6
- export interface Feature {
7
- featureId: string,
8
- featureName: string,
9
- featureUri: string,
10
- status: string,
11
- scenariosCount: number
12
- }
13
-
14
- export interface Scenario {
15
- featureId: string,
16
- featureName: string,
17
- featureUri: string,
18
- status: string,
19
- scenariosCount: number
20
- }
21
-
22
- export interface Steps {
23
- failedSteps: number,
24
- passedSteps: number,
25
- skippedSteps: number,
26
- suggestedSteps: number
27
- }
28
-
29
- function headers(token: string) {
30
- return {
31
- headers: {
32
- 'Content-Type': 'application/json',
33
- 'cookie': `authToken=${token}`
34
- }
35
- }
36
- }
37
-
38
- async function auth() {
39
- return axios.post(
40
- config.auxtaURL + 'login',
41
- config.auxtaCredentials,
42
- {
43
- headers: {
44
- 'Content-Type': 'application/json',
45
- }
46
- })
47
- .then(({data}) => {
48
- return data.token
49
- })
50
- .catch(() => {
51
- throw new Error("Invalid login credentials")
52
- });
53
- }
54
-
55
- export async function createEmptyReport(body: any): Promise<string> {
56
- const token = await auth();
57
- return (await axios.post(
58
- config.auxtaURL + "create-empty-report",
59
- {
60
- environment: body.environment,
61
- digitalProductName: body.digitalProduct,
62
- start: new Date(),
63
- url: body.baseUrl
64
- },
65
- headers(token)
66
- )).data.reportId;
67
- }
68
-
69
- export async function uploadScenario(stepLog: Step[], scenarioName: string, screenshot?: Buffer, errMessage?: object) {
70
- let scenarios = [];
71
- let token = await auth();
72
- let lastStep = stepLog[stepLog.length - 1];
73
- const stepLogFormat = JSON.parse(JSON.stringify(stepLog));
74
- stepLogFormat.pop();
75
- let output = (await axios.post(
76
- config.auxtaURL + "create-scenario",
77
- {
78
- json: {
79
- name: scenarioName,
80
- steps: [
81
- ...stepLogFormat,
82
- (lastStep!.result.status == 'failed')
83
- ? Object.assign(lastStep, {
84
- result: {
85
- ...lastStep!.result,
86
- error_message: JSON.stringify(errMessage)
87
- }
88
- })
89
- : lastStep,
90
- {
91
- keyword: "After",
92
- result: {
93
- status: "passed",
94
- duration: 2678000000
95
- },
96
- embeddings: (screenshot) ? [{
97
- data: screenshot.toString("base64"),
98
- mime_type: "image/png"
99
- }] : undefined,
100
- }
101
- ],
102
- }
103
- },
104
- headers(token)
105
- )).data.scenarios;
106
- scenarios.push({
107
- scenarioRef: output.scenarioRef,
108
- name: output.name,
109
- status: output.status,
110
- stepsCount: output.stepsCount
111
- });
112
- return scenarios;
113
- }
114
-
115
- export async function uploadFeature(scenarioId: any[], scenarioName: string, uri: string, hasFailed: boolean) {
116
- let token = await auth();
117
- return (await axios.post(
118
- config.auxtaURL + "create-feature",
119
- {
120
- json: {
121
- name: scenarioName,
122
- uri: uri
123
- },
124
- scenarios: scenarioId,
125
- hasFailed: hasFailed
126
- },
127
- headers(token)
128
- )).data;
129
- }
130
-
131
- export async function updateReport(reportId: string, feature: Feature, steps: Steps, isFinal: boolean) {
132
- let token = await auth();
133
- await axios.post(
134
- config.auxtaURL + "update-inprogress-report",
135
- {
136
- reportId: reportId,
137
- isFinal: isFinal,
138
- data: {
139
- feature: {
140
- featureRef: feature.featureId,
141
- name: feature.featureName,
142
- uri: feature.featureUri,
143
- status: feature.status,
144
- scenariosCount: feature.scenariosCount
145
- },
146
- ...steps
147
- }
148
- },
149
- headers(token)
150
- );
151
- }
152
-
153
- export async function getReport(reportId: string): Promise<any> {
154
- let token = await auth();
155
- return (await axios.post(
156
- config.auxtaURL + "get-report",
157
- {reportId: reportId},
158
- headers(token)
159
- )).data;
160
- }
161
-
162
- export async function getLastDayResults(): Promise<any> {
163
- let token = await auth();
164
- return (await axios.get(
165
- config.auxtaURL + `get-last-day-results?url=${config.baseURL}`,
166
- headers(token)
167
- )).data.results;
168
- }
169
-
170
- export async function postNotifications( body: UploadModel) {
171
- let token = await auth();
172
- await axios.post(`${config.auxtaURL}post-notification-after-run-background`, {
173
- environmentName: body.environment,
174
- digitalProductName: body.digitalProduct,
175
- organizationName: body.organization,
176
- reportId: body.reportId,
177
- }, headers(token));
178
- }
179
-
180
-
181
- export async function postNotificationsOnFail( body: UploadModel) {
182
- let token = await auth();
183
- await axios.post(`${config.auxtaURL}post-notifications-after-case-fail-background`, {
184
- environmentName: body.environment,
185
- digitalProductName: body.digitalProduct,
186
- organizationName: body.organization,
187
- reportId: body.reportId,
188
- }, headers(token));
189
- }
@@ -1,16 +0,0 @@
1
- import axios from 'axios';
2
- import { config } from "../configs/config";
3
-
4
- export async function startSuite(suites: string[], reportId?: string) {
5
- if (suites.length === 0) return;
6
- const next = suites.shift();
7
- console.log('Starting next suite: ' + next);
8
- try{
9
- await axios.post(
10
- `${config.netlifyPath}.netlify/functions/${next}?token=${config.token}`,
11
- {nextSuites: suites, reportId: reportId})
12
- } catch (e){
13
- // skip the suite if not found
14
- await startSuite(suites, reportId);
15
- }
16
- }