froth-webdriverio-framework 6.0.3 → 6.0.5

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.
@@ -81,30 +81,34 @@ const commonconfig = {
81
81
  if (process.env.PLATFORM === 'browserstack') {
82
82
  /// console.log("capabilities:", capabilities);
83
83
  console.log("====> BROWSERSTACK_LOCAL : " + process.env.BROWSERSTACK_LOCAL);
84
- const isLocalEnabled = process.env.BROWSERSTACK_LOCAL === "true";
85
-
86
- if (isLocalEnabled) {
87
- bsLocal = new browserstack.Local();
88
- const localArgs = {
89
- key: process.env.BROWSERSTACK_ACCESS_KEY,
90
- forceLocal: true,
91
- localIdentifier: capabilities.localIdentifier || 'wdioLocal'
92
- };
93
-
94
- await new Promise((resolve, reject) => {
95
- bsLocal.start(localArgs, function (error) {
96
- if (error) return reject(error);
97
- console.log("====> BrowserStack Local started successfully.");
98
- resolve();
99
- });
100
- });
101
-
102
- // Add Local settings into capabilities dynamically
103
- capabilities['browserstack.local'] = true;
104
- capabilities['browserstack.localIdentifier'] = localArgs.localIdentifier || 'ExecuteLocal';
105
- }
106
- else
107
- console.log("====> BROWSERSTACK_LOCAL not set. Skipping BrowserStack Local startup." + process.env.BROWSERSTACK_LOCAL);
84
+ // const isLocalEnabled = process.env.BROWSERSTACK_LOCAL === "true";
85
+
86
+ // if (isLocalEnabled) {
87
+ // bsLocal = new browserstack.Local();
88
+ // const localArgs = {
89
+ // key: process.env.BROWSERSTACK_ACCESS_KEY,
90
+ // forceLocal: true,
91
+ // localIdentifier: capabilities.localIdentifier || 'wdioLocal'
92
+ // };
93
+
94
+ // await new Promise((resolve, reject) => {
95
+ // bsLocal.start(localArgs, function (error) {
96
+ // if (error) return reject(error);
97
+ // console.log("====> BrowserStack Local started successfully.");
98
+ // resolve();
99
+ // });
100
+ // });
101
+
102
+ // // Add Local settings into capabilities dynamically
103
+ // capabilities['browserstack.local'] = true;
104
+ // capabilities['browserstack.localIdentifier'] = localArgs.localIdentifier || 'ExecuteLocal';
105
+ // }
106
+ // else {
107
+ // console.log("====> BROWSERSTACK_LOCAL not set. Skipping BrowserStack Local startup." + process.env.BROWSERSTACK_LOCAL);
108
+ // // Make sure no stale values from config remain
109
+ // delete capabilities['browserstack.local'];
110
+ // delete capabilities['browserstack.localIdentifier'];
111
+ // }
108
112
 
109
113
  // capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
110
114
  if (capabilities.platformName === 'android' || capabilities.platformName === 'ios') {
@@ -137,6 +141,10 @@ const commonconfig = {
137
141
  console.error("Error parsing MEDIA_FILES:", error);
138
142
  }
139
143
 
144
+ // Normalized structure to support future SauceLabs
145
+ // if (!capabilities['bstack:options']) {
146
+ // capabilities['bstack:options'] = {};
147
+ // }
140
148
  console.log(`Running tests on after app,bslocal,mediafiles: ${JSON.stringify(capabilities)}`);
141
149
  }
142
150
 
@@ -127,6 +127,7 @@ function normalizeCapabilities(rawCaps, sessionType, platform) {
127
127
  consoleLogs: rawCaps.consoleLogs,
128
128
  networkLogs: rawCaps.networkLogs,
129
129
  debug: rawCaps.debug,
130
+ interactiveDebugging: rawCaps.interactiveDebugging,
130
131
  buildIdentifier: rawCaps.buildIdentifier,
131
132
  // userName: rawCaps.userName,
132
133
  // accessKey: process.env.BROWSERSTACK_ACCESS_KEY
@@ -144,7 +145,7 @@ function normalizeCapabilities(rawCaps, sessionType, platform) {
144
145
  'appium:deviceOrientation': rawCaps.deviceOrientation,
145
146
  'appium:app': rawCaps.app || "",
146
147
  'bstack:options': {
147
- appProfiling: rawCaps.appProfiling,
148
+ // appProfiling: rawCaps.appProfiling,
148
149
  networkLogs: rawCaps.networkLogs,
149
150
  debug: rawCaps.debug,
150
151
  interactiveDebugging: rawCaps.interactiveDebugging,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",