froth-webdriverio-framework 4.0.8 → 4.0.10

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.
@@ -88,7 +88,7 @@ async function RNDDATE(startYear = 1950, endYear = 2005, format = 'YYMMDD') {
88
88
 
89
89
  const randomTimestamp = start + Math.random() * (end - start);
90
90
  const randomDate = new Date(randomTimestamp);
91
-
91
+ console.log(randomDate);
92
92
  return FORMATDATE(randomDate, format);
93
93
  }
94
94
 
@@ -187,7 +187,7 @@ async function RANDOM(template, datatype) {
187
187
  // Example function to test the template replacement
188
188
  async function main() {
189
189
 
190
- let template = "SUBHRASUBUDHI {RNDDATE[1968][1970][yymmdd]} @GMAQIL.COM";
190
+ let template = "SUBHRASUBUDHI {RNDDATE[1994][2002][YYMMDD]} @GMAQIL.COM";
191
191
  let result = await RANDOM(template, 'STRING');
192
192
  console.log(result);
193
193
  console.log(typeof result);
@@ -13,8 +13,8 @@ let endtime;
13
13
  console.log('===== common config===== ');
14
14
  const resultdetails = {
15
15
  comments: [],
16
- excution_status: 'SKIPPED', // Pass/Fail
17
- excution_time: 0, // Execution time in milliseconds
16
+ excution_status: null, // Pass/Fail
17
+ excution_time: null, // Execution time in milliseconds
18
18
  };
19
19
  // Description: This file contains the common configuration for the webdriverio framework.
20
20
  const commonconfig = {
@@ -142,6 +142,7 @@ const commonconfig = {
142
142
 
143
143
  if (passed) {
144
144
  scriptresult = "PASSED"
145
+ if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
145
146
  resultdetails.comments.push(`${test.title} - passed`);
146
147
  }
147
148
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
 
5
5
  "readme": "WebdriverIO Integration",
6
6
  "description": "WebdriverIO and BrowserStack App Automate",