froth-webdriverio-framework 6.0.9 → 6.0.11

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.
@@ -1,4 +1,4 @@
1
- process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
1
+ //process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
2
2
 
3
3
  const Imap = require('imap');
4
4
  const { simpleParser } = require('mailparser');
@@ -79,17 +79,16 @@ const commonconfig = {
79
79
  // set the capability like media and app and bs local
80
80
  if (process.env.PLATFORM === 'browserstack') {
81
81
  /// console.log("capabilities:", capabilities);
82
- console.log("====> BROWSERSTACK_LOCAL : " + process.env.BROWSERSTACK_LOCAL);
83
- console.log("Local enabled? →", capabilities['bstack:options']?.local);
84
-
85
- const isLocalEnabled = process.env.BROWSERSTACK_LOCAL === "true";
86
-
87
- if (isLocalEnabled) {
88
- console.log("====> Starting BrowserStack Local...");
89
- if (!capabilities['bstack:options']) capabilities['bstack:options'] = {};
90
- capabilities['bstack:options'].browserstackLocal = true;
91
- console.log("✔ BrowserStack Local enabled dynamically");
92
- }
82
+ // console.log("====> BROWSERSTACK_LOCAL : " + process.env.BROWSERSTACK_LOCAL);
83
+
84
+ // const isLocalEnabled = process.env.BROWSERSTACK_LOCAL === "true";
85
+ // console.log("isLocalEnabled:", isLocalEnabled);
86
+ // if (isLocalEnabled) {
87
+ // console.log("====> Starting BrowserStack Local...");
88
+ // if (!capabilities['bstack:options']) capabilities['bstack:options'] = {};
89
+ // capabilities['bstack:options'].browserstackLocal = true;
90
+ // console.log("✔ BrowserStack Local enabled dynamically");
91
+ // }
93
92
 
94
93
  // capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
95
94
  if (capabilities.platformName === 'android' || capabilities.platformName === 'ios') {
@@ -97,7 +96,7 @@ const commonconfig = {
97
96
  // capabilities.app = process.env.BROWSERSTACK_APP_PATH;
98
97
  const appValue = capabilities['appium:app'];
99
98
  console.log("App Value=====>", appValue);
100
-
99
+
101
100
  if (appValue === undefined || appValue === null || appValue === '') {
102
101
  console.error("🚨 Error: BROWSERSTACK_APP_PATH is not defined or empty.");
103
102
  resultdetails.excution_status = 'FAILED';
@@ -345,15 +344,7 @@ const commonconfig = {
345
344
 
346
345
  await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
347
346
 
348
- if (bsLocal && bsLocal.isRunning()) {
349
- console.log("====> Stopping BrowserStack Local...");
350
- await new Promise((resolve) => {
351
- bsLocal.stop(() => {
352
- console.log("====> BrowserStack Local stopped.");
353
- resolve();
354
- });
355
- });
356
- }
347
+
357
348
  // Perform any cleanup or post-test actions here
358
349
  BUFFER.clear();
359
350
  },
@@ -169,7 +169,7 @@ exports.config = deepmerge(commonconfig,
169
169
  // debug: true,
170
170
  // execArgv: ['--inspect-brk'],
171
171
  services: PLATFORM === 'browserstack'
172
- ? [['browserstack', { browserstackLocal: false }]]
172
+ ? ['browserstack']
173
173
  : PLATFORM === 'saucelabs'
174
174
  ? ['sauce']
175
175
  : [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.9",
3
+ "version": "6.0.11",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",