froth-webdriverio-framework 1.0.75 → 1.0.77

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.
@@ -72,8 +72,8 @@ async function getBSSessionDetails(sessiontype, bs_username, bs_pwd) {
72
72
  const data = await response.json();
73
73
 
74
74
  // Accessing the public_url property
75
- const publicUrl = data.automation_session.public_url;
76
- const duration = data.automation_session.duration;
75
+ const publicUrl = data[0].automation_session.public_url;
76
+ const duration = data[0].automation_session.duration;
77
77
  BUFFER.setItem("REPORT_URL", publicUrl)
78
78
  BUFFER.setItem("TOTAL_DURATION", duration)
79
79
 
@@ -70,6 +70,7 @@ const commonconfig = {
70
70
  */
71
71
  afterTest: function (test, context, { error, result, duration, passed, retries }) {
72
72
  console.log(`Test '${test.title}' finished.`);
73
+ console.log('Test file name:', test.file);
73
74
  // BUFFER.setItem("TOTAL_DURATION", Number(BUFFER.getItem("TOTAL_DURATION")) + duration)
74
75
  console.log(`Duration: ${duration}ms`);
75
76
  console.log(`Passed: ${passed}`);
@@ -95,8 +96,9 @@ const commonconfig = {
95
96
  * @param {Array.<String>} specs List of spec file paths that ran
96
97
  */
97
98
  after: async function (result, capabilities, specs) {
98
- console.log('All tests are done.');
99
+ console.log('All tests are done.'+result);
99
100
  BUFFER.setItem("RESULT_DATA", result);
101
+ console.log("result data :"+BUFFER.getItem("RESULT_DATA"))
100
102
  const resultdetails = {}
101
103
  resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") === 0 ? 'PASSED' : 'FAILED'
102
104
  console.log("Total Duration:" + BUFFER.getItem("TOTAL_DURATION"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",