froth-webdriverio-framework 3.0.123 → 3.0.124

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.
@@ -40,6 +40,25 @@ const commonconfig = {
40
40
  }
41
41
  },
42
42
 
43
+ before: async function (capabilities, specs) {
44
+ console.log('==== BEFORE HOOK ====');
45
+
46
+ // Capture uncaught exceptions (including syntax errors)
47
+ process.on('uncaughtException', (err) => {
48
+ console.error("Uncaught Exception:", err);
49
+ resultdetails.comments.push(`Execution failed with exit code: ${err}`);
50
+ });
51
+
52
+ // Capture unhandled promise rejections
53
+ process.on('unhandledRejection', (reason, promise) => {
54
+ console.error("Unhandled Promise Rejection:", reason);
55
+ resultdetails.comments.push(`Execution failed with exit code: ${reason}`);
56
+ });
57
+ resultdetails.excution_status='SKIPPED';
58
+ await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
59
+
60
+ },
61
+
43
62
 
44
63
  beforeSession: async function (config, capabilities, specs) {
45
64
  try {
@@ -66,6 +85,7 @@ const commonconfig = {
66
85
 
67
86
  console.log(`Running tests on after app,bslocal,mediafiles: ${JSON.stringify(capabilities)}`);
68
87
  }
88
+
69
89
  } catch (error) {
70
90
  console.error('🚨 Error in beforeSession:', error);
71
91
  console.error('🚨 Error in beforeSession:', error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.123",
3
+ "version": "3.0.124",
4
4
 
5
5
  "readme": "WebdriverIO Integration",
6
6
  "description": "WebdriverIO and BrowserStack App Automate",