froth-webdriverio-framework 3.0.19 → 3.0.21

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.
@@ -70,7 +70,7 @@ async function getExecuitonScriptDetails(frothUrl, token, execution_id, script_i
70
70
  });
71
71
  if (response.ok) {
72
72
  const data = await response.json();
73
- // console.log(data)
73
+ // console.log(data)
74
74
  id = data[0].id;
75
75
  console.log("ID is :" + id)
76
76
  // console.log("json data :" + JSON.stringify(jsondata));
@@ -156,6 +156,7 @@ async function updateScriptExecutionStatus(frothUrl, token, scriptid, status) {
156
156
  if (scriptid != 0) {
157
157
  try {
158
158
  const id = await getExecuitonScriptDetails(frothUrl, token, BUFFER.getItem("FROTH_EXECUTION_ID"), scriptid)
159
+ console.log("ID is :" + id)
159
160
  const url = `${frothUrl}/api/script-status-percentage/${id}/`;
160
161
  const formData = new FormData();
161
162
 
@@ -117,17 +117,17 @@ const commonconfig = {
117
117
  console.log('All tests are done.' + result);
118
118
 
119
119
 
120
- // const totalDefinedTests = config.specs.length; // Total test files/specs defined
121
- // const executedTests = result.finished; // Tests that were executed
122
- // const passedTests = result.passed;
123
- // const failedTests = result.failed;
124
- // const notRunTests = totalDefinedTests - executedTests;
125
-
126
- // console.log(`Total Defined Tests: ${totalDefinedTests}`);
127
- // console.log(`Executed Tests: ${executedTests}`);
128
- // console.log(`Passed Tests: ${passedTests}`);
129
- // console.log(`Failed Tests: ${failedTests}`);
130
- // console.log(`Tests Not Run: ${notRunTests}`);
120
+ const totalDefinedTests = exports.config.specs.length; // Total test files/specs defined
121
+ const executedTests = result.finished; // Tests that were executed
122
+ const passedTests = result.passed;
123
+ const failedTests = result.failed;
124
+ const notRunTests = totalDefinedTests - executedTests;
125
+
126
+ console.log(`Total Defined Tests: ${totalDefinedTests}`);
127
+ console.log(`Executed Tests: ${executedTests}`);
128
+ console.log(`Passed Tests: ${passedTests}`);
129
+ console.log(`Failed Tests: ${failedTests}`);
130
+ console.log(`Tests Not Run: ${notRunTests}`);
131
131
 
132
132
  BUFFER.setItem("RESULT_DATA", result);
133
133
  console.log("result data :" + BUFFER.getItem("RESULT_DATA"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.19",
3
+ "version": "3.0.21",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",