froth-webdriverio-framework 3.0.25 → 3.0.27
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 +8 -3
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -26,6 +26,14 @@ 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');
|
|
32
|
+
// 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);
|
|
36
|
+
},
|
|
29
37
|
/**
|
|
30
38
|
* Gets executed before the suite starts (in Mocha/Jasmine only).
|
|
31
39
|
* @param {object} suite suite details
|
|
@@ -33,9 +41,6 @@ const commonconfig = {
|
|
|
33
41
|
beforeSuite: async function (suite) {
|
|
34
42
|
try {
|
|
35
43
|
console.log(`========= Test suite: ' ${suite.title}' has been started=========`,);
|
|
36
|
-
const specCount = suite.specs.total
|
|
37
|
-
|
|
38
|
-
console.log(`========= Number of specs in the suite: ${specCount}`);
|
|
39
44
|
|
|
40
45
|
starttime = new Date().getTime();
|
|
41
46
|
|