froth-webdriverio-framework 7.0.1 → 7.0.3

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.
@@ -1,7 +1,7 @@
1
1
  const axios = require("axios");
2
2
  const FormData = require("form-data");
3
3
 
4
- const { mend2Browserstack: amendToBrowserstack } = require("../froth_api_calls/browsersatckSessionInfo");
4
+ const amendToBrowserstack = require("../froth_api_calls/browsersatckSessionInfo");
5
5
 
6
6
  /**
7
7
  * ===============================
@@ -258,11 +258,13 @@ const commonHooks = {
258
258
  afterSession: async (config, capabilities, specs, exitCode) => {
259
259
  console.log('==== AFTER SESSION ====');
260
260
  // Do not calculate time here; we will use WDIO's total duration in onComplete
261
- console.log('⏱ Leaving execution time calculation for onComplete hook' + resultdetails.comments);
261
+ console.log('⏱ ==== Execution time calculation ==== ');
262
262
  const endTime = Date.now();
263
263
  const totalTime = endTime - suiteStartTime; // Full WDIO+CI elapsed time
264
264
  resultdetails.excution_time = await msToTime(totalTime);
265
+ console.log("Exit code after session===>"+exitCode)
265
266
  resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
267
+
266
268
  console.log('Comments being sent:', resultdetails.comments);
267
269
  //resultdetails.comments.push(BUFFER.getItem('ALL_COMMENTS'))
268
270
  console.log('⏱ Final execution time (ms):', totalTime);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
5
5
  "description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
6
6
  "scripts": {