froth-webdriverio-framework 7.0.20 → 7.0.21
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.
|
@@ -151,7 +151,10 @@ const commonHooks = {
|
|
|
151
151
|
/** Media upload */
|
|
152
152
|
if (process.env.MEDIA_FILES) {
|
|
153
153
|
try {
|
|
154
|
-
|
|
154
|
+
const media = JSON.parse(process.env.MEDIA_FILES);
|
|
155
|
+
console.log('Total items:', media.length);
|
|
156
|
+
if (media.length > 0)
|
|
157
|
+
bsOpts['browserstack.uploadMedia'] = JSON.parse(process.env.MEDIA_FILES);
|
|
155
158
|
} catch {
|
|
156
159
|
console.warn('⚠️ MEDIA_FILES is not valid JSON');
|
|
157
160
|
}
|
|
@@ -161,7 +164,7 @@ const commonHooks = {
|
|
|
161
164
|
}
|
|
162
165
|
console.log('final cinfig dteials :' + JSON.stringify(capabilities))
|
|
163
166
|
|
|
164
|
-
|
|
167
|
+
// console.log("config details " + JSON.stringify(config))
|
|
165
168
|
|
|
166
169
|
|
|
167
170
|
} catch (error) {
|
|
@@ -262,7 +265,7 @@ const commonHooks = {
|
|
|
262
265
|
const endTime = Date.now();
|
|
263
266
|
const totalTime = endTime - suiteStartTime; // Full WDIO+CI elapsed time
|
|
264
267
|
resultdetails.excution_time = await msToTime(totalTime);
|
|
265
|
-
console.log("Exit code after session===>"+exitCode)
|
|
268
|
+
console.log("Exit code after session===>" + exitCode)
|
|
266
269
|
resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
|
|
267
270
|
|
|
268
271
|
console.log('Comments being sent:', resultdetails.comments);
|