froth-webdriverio-framework 0.1.45 → 0.1.46

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,5 +1,6 @@
1
1
  const deepmerge = require('deepmerge')
2
2
  const commonmobileconfig = require('./common.mobile.conf');
3
+ console.log("BUILD_NUMBER:", process.env.BUILD_NUMBER);
3
4
 
4
5
  const androidConfig = deepmerge.all([commonmobileconfig, {
5
6
  services: [
@@ -8,7 +9,7 @@ const androidConfig = deepmerge.all([commonmobileconfig, {
8
9
  {
9
10
  testObservability: true,
10
11
  buildName: "ANDROID BUILD 1",
11
- buildIdentifier: "${BUILD_NUMBER}", // Optional and unique for each build
12
+ buildIdentifier: process.env.BUILD_NUMBER || "default_build_identifier",
12
13
  browserstackLocal: true,
13
14
  opts: { forcelocal: false, localIdentifier: "webdriverio-appium" },
14
15
  app: process.env.BROWSERSTACK_APP_PATH || 'bs://a224145c09eb22e67c21ef65b29d32ae7aa78bb0'
@@ -28,14 +29,16 @@ const androidConfig = deepmerge.all([commonmobileconfig, {
28
29
 
29
30
  }]);
30
31
 
31
- // androidConfig.capabilities.forEach(function (caps) {
32
- // for (var i in androidConfig.commonCapabilities){
33
- // console.log("i:", i);
34
- // console.log("caps[i]:", caps[i]);
35
- // console.log("androidConfig.commonCapabilities[i]:", androidConfig.commonCapabilities[i]);
36
- // caps[i] = caps[i] || androidConfig.commonCapabilities[i];
37
- // }
38
- // });
32
+ console.log("Merged Android Config:", JSON.stringify(androidConfig, null, 2));
33
+
34
+ androidConfig.capabilities.forEach(function (caps) {
35
+ for (var i in androidConfig.commonCapabilities) {
36
+ console.log("i:", i);
37
+ console.log("caps[i]:", caps[i]);
38
+ console.log("androidConfig.commonCapabilities[i]:", androidConfig.commonCapabilities[i]);
39
+ caps[i] = caps[i] || androidConfig.commonCapabilities[i];
40
+ }
41
+ });
39
42
 
40
43
  module.exports = androidConfig;
41
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "readme": "WendriverIO Integration with [BrowserStack]",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",