froth-webdriverio-framework 3.0.26 → 3.0.28
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.
- package/config/commonconfig.js +7 -4
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -26,6 +26,13 @@ const commonconfig = {
|
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
beforeSession: async function (config, capabilities, specs) {
|
|
30
|
+
console.log('========= This is the beforesession hook');
|
|
31
|
+
// Perform any setup or pre-test actions here
|
|
32
|
+
console.log("Capabilities:", capabilities);
|
|
33
|
+
console.log("Specs:", specs);
|
|
34
|
+
console.log("Config:", config);
|
|
35
|
+
},
|
|
29
36
|
/**
|
|
30
37
|
* Gets executed before the suite starts (in Mocha/Jasmine only).
|
|
31
38
|
* @param {object} suite suite details
|
|
@@ -33,10 +40,6 @@ const commonconfig = {
|
|
|
33
40
|
beforeSuite: async function (suite) {
|
|
34
41
|
try {
|
|
35
42
|
console.log(`========= Test suite: ' ${suite.title}' has been started=========`,);
|
|
36
|
-
console.log('========= Suite Object:', suite);
|
|
37
|
-
const specCount = suite.specCount;
|
|
38
|
-
|
|
39
|
-
console.log(`========= Number of specs in the suite: ${specCount}`);
|
|
40
43
|
|
|
41
44
|
starttime = new Date().getTime();
|
|
42
45
|
|