froth-webdriverio-framework 3.0.16 → 3.0.17

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.
@@ -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
- let totalTests = 0;
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,7 +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
36
  console.log("Total Tests Defined in Suite:", totalTests);
39
37
  // const sessionId = browser.sessionId;
40
38
  // BUFFER.setItem("SESSION_ID", sessionId)
@@ -79,7 +77,6 @@ const commonconfig = {
79
77
  */
80
78
  afterTest: async function (test, context, { error, result, duration, passed, retries }) {
81
79
  console.log(`Test '${test.title}' finished.`);
82
- executedTests++;
83
80
 
84
81
  const fileName = path.basename(test.file);
85
82
  console.log('Test File Name:', fileName);
@@ -119,10 +116,7 @@ const commonconfig = {
119
116
  */
120
117
  after: async function (result, config,capabilities, specs) {
121
118
  console.log('All tests are done.' + result);
122
- const notRunTests1 = totalTests - executedTests;
123
- console.log(`Total Tests Defined: ${totalTests}`);
124
- console.log(`Executed Tests: ${executedTests}`);
125
- console.log(`Tests Not Run: ${notRunTests1}`);
119
+
126
120
 
127
121
  const totalDefinedTests = config.specs.length; // Total test files/specs defined
128
122
  const executedTests = result.finished; // Tests that were executed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",