froth-webdriverio-framework 3.0.27 → 3.0.29

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,13 +26,12 @@ const commonconfig = {
26
26
  },
27
27
 
28
28
 
29
- before: async function (capabilities, specs) {
30
- console.log('========= This is the before hook');
31
- console.log('========= Test suite is about to start');
29
+ beforeSession: async function (config, capabilities, specs) {
30
+ console.log('========= This is the beforesession hook');
32
31
  // Perform any setup or pre-test actions here
33
- console.log("========= spec file name:" + specs);
34
- console.log("========= spec file name:" + specs[0]);
35
- console.log("========= spec count:" + specs.length);
32
+ // console.log("Capabilities:", capabilities);
33
+ console.log("Specs:", specs.total);
34
+ // console.log("Config:", config);
36
35
  },
37
36
  /**
38
37
  * Gets executed before the suite starts (in Mocha/Jasmine only).
@@ -140,6 +139,9 @@ const commonconfig = {
140
139
  afterSession: async function (config, capabilities, specs) {
141
140
  console.log('========= This is the aftersession hook');
142
141
  // Perform any cleanup or post-test actions here
142
+ console.log("Capabilities:", capabilities);
143
+ console.log("Specs:", specs);
144
+ console.log("Config:", config);
143
145
 
144
146
  endtime = new Date().getTime();
145
147
  let totalDuration = endtime - starttime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.27",
3
+ "version": "3.0.29",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",