sealights-protractor-plugin 2.0.13 → 2.0.19

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 CHANGED
@@ -15,21 +15,24 @@ In your config file add the sealights plugin
15
15
  ```
16
16
  plugins: [{
17
17
  package: 'sealights-protractor-plugin',
18
- }
18
+ },
19
+ ...
20
+ ]
19
21
  ```
20
- ### Passing parameters to reporter
22
+ ### Passing parameters to reporter via CLI
21
23
  From the command line add sealights parameters with '--sl-' prefix
22
24
 
23
25
  ```
24
26
  protractor protractor.conf.js --sl-tokenfile <path/to/token-file> --sl-buildsessionidfile <path/to/buildSessionId-file> --sl-testStage e2e
25
27
  ```
28
+
26
29
  ### Supported parameters
27
- * sl-token - Sealights token
28
- * sl-tokenFile - Path to file contains the Sealights token
29
- * sl-buildSessionId - Sealights build session id
30
- * sl-buildSessionIdFile - Path to file contains the Sealights build session id
31
- * sl-testStage - Test stage current tests are relates to
32
- * sl-labId - Pre-defined Sealights lab-id (optional)
33
- * sl-proxy - Proxy server (optional)
30
+ * token - Sealights token
31
+ * tokenFile - Path to file contains the Sealights token
32
+ * buildSessionId - Sealights build session id
33
+ * buildSessionIdFile - Path to file contains the Sealights build session id
34
+ * testStage - Test stage current tests are relates to
35
+ * labId - Pre-defined Sealights lab-id (optional)
36
+ * proxy - Proxy server (optional)
34
37
  ## Author
35
38
  Sealights
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sealights-protractor-plugin",
3
- "version": "2.0.13",
3
+ "version": "2.0.19",
4
4
  "description": "> TODO: description",
5
5
  "author": "Roni Segal <roni@sealights.io>",
6
6
  "homepage": "https://github.com/RoniSegal/SL.OnPremis.Plugins.JavaScript#readme",
@@ -18,6 +18,7 @@
18
18
  "url": "git+https://github.com/RoniSegal/SL.OnPremis.Plugins.JavaScript.git"
19
19
  },
20
20
  "scripts": {
21
+ "prebuild": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version) + ';'\" > lib/version.ts",
21
22
  "build": "tsc -p .",
22
23
  "test": "mocha ./tsOutputs/test",
23
24
  "update-driver": "webdriver-manager update"
@@ -28,8 +29,8 @@
28
29
  "dependencies": {
29
30
  "mocha": "^9.1.3",
30
31
  "protractor": "^5.2.2",
31
- "sealights-plugins-common": "^2.0.13",
32
+ "sealights-plugins-common": "^2.0.19",
32
33
  "typescript": "^4.4.4"
33
34
  },
34
- "gitHead": "f732ca3288f109376881a99bece22c1817227250"
35
+ "gitHead": "04500dc9a2d8db78a432f5241767aec98157ac5a"
35
36
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const protractor_1 = require("protractor");
13
13
  const contracts_1 = require("./contracts");
14
14
  const sealights_plugins_common_1 = require("sealights-plugins-common");
15
+ const version_1 = require("./version");
15
16
  const sendFootprintsScript = 'if(window && window.$SealightsAgent && window.$SealightsAgent.sendAllFootprints){' +
16
17
  'window.$SealightsAgent.sendAllFootprints().' +
17
18
  'then(arguments[arguments.length - 1])' +
@@ -19,6 +20,10 @@ const sendFootprintsScript = 'if(window && window.$SealightsAgent && window.$Se
19
20
  ' arguments[arguments.length - 1]()' +
20
21
  '}';
21
22
  const originalSeleniumMethods = new Map();
23
+ const tags = [{
24
+ name: 'protractor-plugin',
25
+ version: version_1.version,
26
+ }];
22
27
  function runScriptSafe() {
23
28
  return __awaiter(this, void 0, void 0, function* () {
24
29
  try {
@@ -46,7 +51,7 @@ module.exports = {
46
51
  });
47
52
  const config = new sealights_plugins_common_1.CliSlConfigProvider();
48
53
  yield config.init();
49
- const instance = yield sealights_plugins_common_1.SealightsIntegration.getInstance(config);
54
+ const instance = yield sealights_plugins_common_1.SealightsIntegration.getInstance(config, undefined, tags);
50
55
  yield instance.startExecution();
51
56
  });
52
57
  },
@@ -55,7 +60,7 @@ module.exports = {
55
60
  yield runScriptSafe();
56
61
  const config = new sealights_plugins_common_1.CliSlConfigProvider();
57
62
  yield config.init();
58
- const instance = yield sealights_plugins_common_1.SealightsIntegration.getInstance(config);
63
+ const instance = yield sealights_plugins_common_1.SealightsIntegration.getInstance(config, undefined, tags);
59
64
  yield instance.endExecution();
60
65
  yield instance.stopAgent();
61
66
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2CAAwD;AACxD,2CAA4C;AAC5C,uEAA2F;AAE3F,MAAM,oBAAoB,GAAG,oFAAoF;IAC7G,6CAA6C;IAC7C,uCAAuC;IACvC,UAAU;IACV,oCAAoC;IACpC,GAAG,CAAC;AACR,MAAM,uBAAuB,GAAmC,IAAI,GAAG,EAAE,CAAC;AAE1E,SAAe,aAAa;;QACxB,IAAI;YACA,iCAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAA;YACpD,MAAM,oBAAiB,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;SACpE;QAAC,OAAO,CAAC,EAAE;YACR,iCAAM,CAAC,SAAS,CAAC,kDAAkD,CAAC,CAAC,OAAO,GAAG,CAAC,CAAA;SACnF;IACL,CAAC;CAAA;AAED,MAAM,CAAC,OAAO,GAAG;IACZ,IAAI,EAAE,6BAA6B;IACnC,oBAAoB,EAAE,+CAAoB;IAE3C,KAAK,EAAE;;YACH,MAAM,CAAC,MAAM,CAAC,2BAAe,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBAC5C,uBAAuB,CAAC,MAAM,CAAC,GAAG,oBAAiB,CAAC,MAAM,CAAC,CAAC;gBAC5D,oBAAiB,CAAC,MAAM,CAAC,GAAG;;wBACxB,MAAM,aAAa,EAAE,CAAC;wBACtB,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;oBACjE,CAAC;iBAAA,CAAA;YACL,CAAC,CAAC,CAAC;YACH,MAAM,MAAM,GAAG,IAAI,8CAAmB,EAAE,CAAC;YACzC,MAAM,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,oBAAoB,EAAE,+CAAoB;IAE3C,KAAK,EAAE;;YACH,MAAM,CAAC,MAAM,CAAC,2BAAe,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;gBAC5C,uBAAuB,CAAC,MAAM,CAAC,GAAG,oBAAiB,CAAC,MAAM,CAAC,CAAC;gBAC5D,oBAAiB,CAAC,MAAM,CAAC,GAAG;;wBACxB,MAAM,aAAa,EAAE,CAAC;wBACtB,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;oBACjE,CAAC;iBAAA,CAAA;YACL,CAAC,CAAC,CAAC;YACH,MAAM,MAAM,GAAG,IAAI,8CAAmB,EAAE,CAAC;YACzC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,MAAM,QAAQ,GAAG,MAAM,+CAAoB,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;YACjF,MAAM,QAAQ,CAAC,cAAc,EAAE,CAAC;QACpC,CAAC;KAAA;IAGD,QAAQ,EAAE;;YACN,MAAM,aAAa,EAAE,CAAC;YACtB,MAAM,MAAM,GAAG,IAAI,8CAAmB,EAAE,CAAC;YACzC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YACpB,MAAM,QAAQ,GAAG,MAAM,+CAAoB,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;YACjF,MAAM,QAAQ,CAAC,YAAY,EAAE,CAAC;YAC9B,MAAM,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC/B,CAAC;KAAA;CACJ,CAAA"}
@@ -0,0 +1 @@
1
+ export declare const version = "2.0.19";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.version = void 0;
4
+ exports.version = "2.0.19";
5
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../lib/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC"}