froth-webdriverio-framework 3.0.115 → 3.0.116

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.
@@ -48,9 +48,11 @@ const commonconfig = {
48
48
  } catch (error) {
49
49
  console.error('🚨 Error in beforeSession:', error.message);
50
50
  resultdetails.excution_status = 'FAILED' ;
51
- resultdetails.comments.push( error.message);
51
+ resultdetails.comments.push("Session creation failed:", error.message);
52
52
  await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
53
- throw new Error(`Session creation failed: ${error.message}`);
53
+ // throw new Error(`Session creation failed: ${error.message}`);
54
+ process.exit(1); // Stop execution if session creation fails
55
+
54
56
  }
55
57
 
56
58
  },
@@ -159,7 +161,8 @@ const commonconfig = {
159
161
  resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") == 0 ? 'PASSED' : 'FAILED'
160
162
  console.log("====> Total Duration taken for the suite:" + BUFFER.getItem("FROTH_TOTAL_DURATION"));
161
163
  console.log("====> Execution Status from results" + resultdetails.excution_status);
162
-
164
+
165
+ resultdetails.comments.push("all tests are completed")
163
166
  resultdetails.excution_time = await secondsToTime(BUFFER.getItem("FROTH_TOTAL_DURATION"))
164
167
  await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
165
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.115",
3
+ "version": "3.0.116",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",