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.
|
@@ -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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
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
|
-
? [
|
|
172
|
+
? ['browserstack']
|
|
173
173
|
: PLATFORM === 'saucelabs'
|
|
174
174
|
? ['sauce']
|
|
175
175
|
: [],
|