froth-webdriverio-framework 3.0.29 → 3.0.31

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.
@@ -26,12 +26,18 @@ const commonconfig = {
26
26
  },
27
27
 
28
28
 
29
- beforeSession: async function (config, capabilities, specs) {
29
+ beforeSession: async function (config, capabilities,
30
+
31
+ ) {
30
32
  console.log('========= This is the beforesession hook');
31
33
  // Perform any setup or pre-test actions here
32
- // console.log("Capabilities:", capabilities);
33
- console.log("Specs:", specs.total);
34
- // console.log("Config:", config);
34
+ // console.log("Capabilities:", capabilities);
35
+ console.log("Specs:", specs);
36
+ const specsdata = specs
37
+ console.log("====== specdata is ", specsdata)
38
+ console.log("====== length of specs", specsdata.length)
39
+ console.log("Specs:", specs.length);
40
+ // console.log("Config:", config);
35
41
  },
36
42
  /**
37
43
  * Gets executed before the suite starts (in Mocha/Jasmine only).
@@ -141,6 +147,7 @@ const commonconfig = {
141
147
  // Perform any cleanup or post-test actions here
142
148
  console.log("Capabilities:", capabilities);
143
149
  console.log("Specs:", specs);
150
+ const specsdata = specs
144
151
  console.log("Config:", config);
145
152
 
146
153
  endtime = new Date().getTime();
@@ -157,13 +164,18 @@ const commonconfig = {
157
164
  resultdetails.excution_time = BUFFER.getItem("FROTH_TOTAL_DURATION") === 0 ? await convertTimetoHHMMSS(totalDuration) : await secondsToTime(BUFFER.getItem("FROTH_TOTAL_DURATION"))
158
165
  await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
159
166
  BUFFER.clear();
167
+
168
+
160
169
  // Perform any cleanup or post-test actions here
161
170
  },
162
171
 
163
172
  onComplete: async function (exitCode, config, capabilities, results) {
173
+
164
174
  console.log('========= This is the onComplete hook', results);
175
+
165
176
  console.log('--- Test Results Summary ---');
166
177
  console.log('----------------------------');
178
+
167
179
  console.log('Total Tests:', results.total);
168
180
  console.log('Passed:', results.passed);
169
181
  console.log('Failed:', results.failed);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.29",
3
+ "version": "3.0.31",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",