froth-webdriverio-framework 6.0.79 → 6.0.80

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.
@@ -4,8 +4,8 @@ async function getBSBuildDetails(sessionType, bsUsername, bsPassword) {
4
4
 
5
5
  const basicAuth = btoa(`${bsUsername}:${bsPassword}`);
6
6
  const buildName = sessionType === 'app-automate'
7
- ? `Mobile_Build-${process.env.FROTH_TESTOPS_BUILD_NAME}`
8
- : `Web_Build-${process.env.FROTH_TESTOPS_BUILD_NAME}`;
7
+ ? `Mobile_Build- ${process.env.FROTH_TESTOPS_BUILD_NAME}`
8
+ : `Web_Build- ${process.env.FROTH_TESTOPS_BUILD_NAME}`;
9
9
 
10
10
  console.log(`BrowserStack build name: ${buildName}`);
11
11
 
@@ -83,9 +83,9 @@ async function failExecution(reason) {
83
83
  }
84
84
 
85
85
  async function pushComment(msg) {
86
- const comments = BUFFER.getItem('RESULT_COMMENTS') || [];
87
- comments.push(msg);
88
- BUFFER.setItem('RESULT_COMMENTS', comments);
86
+ //const comments = BUFFER.getItem('RESULT_COMMENTS') || [];
87
+ resultdetails.comments.push(msg);
88
+ BUFFER.setItem('RESULT_COMMENTS', resultdetails.comments);
89
89
  }
90
90
  /* ------------------ COMMON CONFIG ------------------ */
91
91
 
@@ -202,7 +202,7 @@ const commonHooks = {
202
202
  const fileName = path.basename(test.file);
203
203
  const status = passed ? 'PASSED' : 'FAILED';
204
204
  const msg = `${test.title} - ${passed ? 'Passed' : error?.message || 'Failed'}`;
205
- pushComment(msg);
205
+ await pushComment(msg);
206
206
 
207
207
  const suiteDetails = JSON.parse(BUFFER.getItem('FROTHE_SUITE_DETAILS'));
208
208
  const script = suiteDetails.find(s => s.scriptName === fileName.replace('.js', ''));
@@ -265,7 +265,7 @@ const commonHooks = {
265
265
  resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
266
266
 
267
267
  const allComments = BUFFER.getItem('RESULT_COMMENTS') || [];
268
-
268
+ console.log("All Comments:"+allComments)
269
269
  // In positive case, you can still push a success comment
270
270
  if (allComments.length === 0) {
271
271
  allComments.push(`All tests passed ✅`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.79",
3
+ "version": "6.0.80",
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": {