froth-webdriverio-framework 3.0.138 → 3.0.140

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.
@@ -14,9 +14,9 @@ const resultdetails = {
14
14
  excution_status: 'SKIPPED', // Pass/Fail
15
15
  excution_time: 0, // Execution time in milliseconds
16
16
  };
17
+ let suite_info = {};
17
18
  // Description: This file contains the common configuration for the webdriverio framework.
18
19
  const commonconfig = {
19
- suite_info: {},
20
20
 
21
21
  onPrepare: async function (capabilities, specs) {
22
22
  try {
@@ -28,7 +28,7 @@ const commonconfig = {
28
28
  await setAllDetails.setExecutionDetails();
29
29
 
30
30
  // await setAllDetails.setIntegrationsDetails();
31
- this.suite_info= await setAllDetails.setSuiteDetails();
31
+ suite_info= await setAllDetails.setSuiteDetails();
32
32
  console.log("First Log - suite_info:", JSON.stringify(suite_info));
33
33
  console.log("Type:", typeof suite_info); // Check if it's object, undefined, or something else
34
34
  await setAllDetails.setTestDataDetails();
@@ -156,9 +156,9 @@ const commonconfig = {
156
156
 
157
157
  // scriptresult = "FAILED"
158
158
  }
159
- let suite_info1= JSON.stringify(this.suite_info);
159
+ let suite_info1= JSON.stringify(suite_info);
160
160
  console.log("Second Log - suite_info:", suite_info1)
161
- const jwtScript = this.suite_info.script_details.find(script => script.scriptName === fileName.replace(".js", ""));
161
+ const jwtScript = suite_info.script_details.find(script => script.scriptName === fileName.replace(".js", ""));
162
162
  console.log("jwtScript:", jwtScript);
163
163
  if (jwtScript) {
164
164
  console.log("Script ID:", jwtScript.scriptId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.138",
3
+ "version": "3.0.140",
4
4
 
5
5
  "readme": "WebdriverIO Integration",
6
6
  "description": "WebdriverIO and BrowserStack App Automate",