froth-webdriverio-framework 7.0.41 → 7.0.42
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.
|
@@ -41,6 +41,7 @@ function registerGlobalErrorHandlers() {
|
|
|
41
41
|
async function safeUpdateExecution() {
|
|
42
42
|
try {
|
|
43
43
|
if (executionUpdated) return;
|
|
44
|
+
console.log("Status of execution Updated:" + executionUpdated)
|
|
44
45
|
executionUpdated = true;
|
|
45
46
|
|
|
46
47
|
try {
|
|
@@ -296,7 +297,7 @@ const commonHooks = {
|
|
|
296
297
|
console.log("Exit code after session===>" + exitCode)
|
|
297
298
|
if (exitCode === undefined || exitCode === null) {
|
|
298
299
|
exitCode = 1 // treat as failure
|
|
299
|
-
}
|
|
300
|
+
}
|
|
300
301
|
resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
|
|
301
302
|
|
|
302
303
|
console.log('Comments being sent:', resultdetails.comments);
|
|
@@ -304,7 +305,7 @@ const commonHooks = {
|
|
|
304
305
|
console.log('⏱ Final execution time (ms):', totalTime);
|
|
305
306
|
console.log('⏱ Final execution time (hh:mm:ss):', resultdetails.excution_time);
|
|
306
307
|
await safeUpdateExecution();
|
|
307
|
-
|
|
308
|
+
|
|
308
309
|
|
|
309
310
|
},
|
|
310
311
|
|
|
@@ -336,8 +337,7 @@ const commonHooks = {
|
|
|
336
337
|
resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
|
|
337
338
|
|
|
338
339
|
await safeUpdateExecution();
|
|
339
|
-
|
|
340
|
-
|
|
340
|
+
BUFFER.clear();
|
|
341
341
|
return exitCode;
|
|
342
342
|
},
|
|
343
343
|
|