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.
- package/config/android.conf.js +12 -9
- package/package.json +1 -1
package/config/android.conf.js
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|