froth-webdriverio-framework 4.0.5 → 4.0.6
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.
|
@@ -6,6 +6,7 @@ const setAllDetails = require("./setallDatailinBuffer")
|
|
|
6
6
|
const exeDetails = require("../froth_api_calls/getexecutionDetails")
|
|
7
7
|
const getBSSessionDetails = require("../froth_api_calls/browsersatckSessionInfo").getBSSessionDetails;
|
|
8
8
|
const { fail } = require("assert");
|
|
9
|
+
const { error } = require('console');
|
|
9
10
|
//const isBrowserStackEnabled = process.env.BROWSERSTACK;
|
|
10
11
|
let starttime;
|
|
11
12
|
let endtime;
|
|
@@ -200,6 +201,12 @@ const commonconfig = {
|
|
|
200
201
|
resultdetails.comments.push("❌ WebDriver session failed or timed out.");
|
|
201
202
|
}
|
|
202
203
|
resultdetails.comments.push(`Execution failed with exit code: ${result}`);
|
|
204
|
+
|
|
205
|
+
process.on('uncaughtException', (err) => {
|
|
206
|
+
console.error("Uncaught Exception:", err);
|
|
207
|
+
resultdetails.comments.push(`Execution failed : ${err}`);
|
|
208
|
+
});
|
|
209
|
+
|
|
203
210
|
}
|
|
204
211
|
resultdetails.excution_time = await secondsToTime(BUFFER.getItem("FROTH_TOTAL_DURATION"))
|
|
205
212
|
await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
|