froth-webdriverio-framework 7.0.41 → 7.0.43
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.
|
@@ -170,9 +170,9 @@ async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
|
|
|
170
170
|
data = await response.text();
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
// console.log('📤 API Response Status:', response.status);
|
|
174
|
+
// console.log('📤 API Response Headers:', Array.from(response.headers.entries()));
|
|
175
|
+
// console.log('📤 API Response Body:', data);
|
|
176
176
|
|
|
177
177
|
if (!response.ok) {
|
|
178
178
|
console.error(`❌ Failed to update execution details, status ${response.status}`);
|
|
@@ -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 {
|
|
@@ -105,9 +106,9 @@ const commonHooks = {
|
|
|
105
106
|
await setAllDetails.setTestDataDetails();
|
|
106
107
|
|
|
107
108
|
console.log('✅ All Environment Variables:');
|
|
108
|
-
for (const [key, value] of Object.entries(process.env)) {
|
|
109
|
-
|
|
110
|
-
}
|
|
109
|
+
// for (const [key, value] of Object.entries(process.env)) {
|
|
110
|
+
// console.log(`${key} = ${value}`);
|
|
111
|
+
// }
|
|
111
112
|
},
|
|
112
113
|
|
|
113
114
|
/* ========== ON WORKER ERROR (SESSION / DRIVER FAILURES) ========== */
|
|
@@ -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
|
|