froth-webdriverio-framework 6.0.1 → 6.0.2

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.
@@ -80,7 +80,9 @@ const commonconfig = {
80
80
  // set the capability like media and app and bs local
81
81
  if (process.env.PLATFORM === 'browserstack') {
82
82
  /// console.log("capabilities:", capabilities);
83
- if (process.env.BROWSERSTACK_LOCAL === true) {
83
+ console.log("====> BROWSERSTACK_LOCAL : "+process.env.BROWSERSTACK_LOCAL);
84
+
85
+ if (process.env.BROWSERSTACK_LOCAL) {
84
86
  bsLocal = new browserstack.Local();
85
87
  const localArgs = {
86
88
  key: process.env.BROWSERSTACK_ACCESS_KEY,
@@ -100,9 +102,14 @@ const commonconfig = {
100
102
  capabilities['browserstack.local'] = true;
101
103
  capabilities['browserstack.localIdentifier'] = localArgs.localIdentifier || 'ExecuteLocal';
102
104
  }
105
+ else
106
+ console.log("====> BROWSERSTACK_LOCAL not set. Skipping BrowserStack Local startup."+process.env.BROWSERSTACK_LOCAL);
107
+
103
108
  // capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
104
109
  if (capabilities.platformName === 'android' || capabilities.platformName === 'ios') {
105
- capabilities.app = process.env.BROWSERSTACK_APP_PATH;
110
+ capabilities['appium:app'] = process.env.BROWSERSTACK_APP_PATH;
111
+
112
+ // capabilities.app = process.env.BROWSERSTACK_APP_PATH;
106
113
  if (capabilities.app === undefined || capabilities.app === null || capabilities.app === '') {
107
114
  console.error("🚨 Error: BROWSERSTACK_APP_PATH is not defined or empty.");
108
115
  resultdetails.excution_status = 'FAILED';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",