froth-webdriverio-framework 3.0.16 → 3.0.18
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 +2 -9
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -7,8 +7,7 @@ const getBSSessionDetails = require("../api/browsersatckSessionInfo");
|
|
|
7
7
|
const isBrowserStackEnabled = process.env.BROWSERSTACK;
|
|
8
8
|
let starttime;
|
|
9
9
|
let endtime;
|
|
10
|
-
|
|
11
|
-
let executedTests = 0;
|
|
10
|
+
|
|
12
11
|
// Description: This file contains the common configuration for the webdriverio framework.
|
|
13
12
|
const commonconfig = {
|
|
14
13
|
|
|
@@ -34,8 +33,6 @@ const commonconfig = {
|
|
|
34
33
|
try {
|
|
35
34
|
console.log("Running suite:", suite.title);
|
|
36
35
|
starttime = new Date().getTime();
|
|
37
|
-
totalTests += suite.tests.length;
|
|
38
|
-
console.log("Total Tests Defined in Suite:", totalTests);
|
|
39
36
|
// const sessionId = browser.sessionId;
|
|
40
37
|
// BUFFER.setItem("SESSION_ID", sessionId)
|
|
41
38
|
if (isBrowserStackEnabled === true) {
|
|
@@ -79,7 +76,6 @@ const commonconfig = {
|
|
|
79
76
|
*/
|
|
80
77
|
afterTest: async function (test, context, { error, result, duration, passed, retries }) {
|
|
81
78
|
console.log(`Test '${test.title}' finished.`);
|
|
82
|
-
executedTests++;
|
|
83
79
|
|
|
84
80
|
const fileName = path.basename(test.file);
|
|
85
81
|
console.log('Test File Name:', fileName);
|
|
@@ -119,10 +115,7 @@ const commonconfig = {
|
|
|
119
115
|
*/
|
|
120
116
|
after: async function (result, config,capabilities, specs) {
|
|
121
117
|
console.log('All tests are done.' + result);
|
|
122
|
-
|
|
123
|
-
console.log(`Total Tests Defined: ${totalTests}`);
|
|
124
|
-
console.log(`Executed Tests: ${executedTests}`);
|
|
125
|
-
console.log(`Tests Not Run: ${notRunTests1}`);
|
|
118
|
+
|
|
126
119
|
|
|
127
120
|
const totalDefinedTests = config.specs.length; // Total test files/specs defined
|
|
128
121
|
const executedTests = result.finished; // Tests that were executed
|