froth-webdriverio-framework 3.0.55 → 3.0.56

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.
@@ -32,12 +32,11 @@ async function callapi(method, api_url, queryParams, payloaddetails, authenticat
32
32
  // Send the request
33
33
  response = await fetch(api_url, options);
34
34
 
35
- }
36
- catch (error) {
35
+ } catch (error) {
37
36
  console.error('Error during API call in call api menthod:', error);
38
- let annotationMessage = 'Error during API call:'+ error.response ? error.response.data : error.message;
39
- if (process.env.BROWSERSTACK)
40
- await amendToBrowserstack(annotationMessage, "error");
37
+ let annotationMessage = 'Error during API call:' + error.response ? error.response.data : error.message;
38
+ // if (process.env.BROWSERSTACK)
39
+ await amendToBrowserstack(annotationMessage, "error");
41
40
  }
42
41
  return response;
43
42
  }
@@ -76,7 +75,7 @@ async function formheaders(authentication, headers) {
76
75
  } catch (e) {
77
76
 
78
77
  console.error('Error in formheaders:', e);
79
- let annotationMessage = 'Error during API call:'+ error.response ? error.response.data : error.message;
78
+ let annotationMessage = 'Error during API call:' + error.response ? error.response.data : error.message;
80
79
 
81
80
  }
82
81
  return headers;
@@ -87,7 +86,7 @@ async function validate(attribute_name, attribute, actionname, buffer, buffernam
87
86
  try {
88
87
 
89
88
  if (actionname.toLowerCase() == "verify") {
90
- await validateAttributeData(attribute_name,attribute,buffer, buffername_value, datatype);
89
+ await validateAttributeData(attribute_name, attribute, buffer, buffername_value, datatype);
91
90
  } else if (actionname.toLowerCase() == "setbuffer") {
92
91
  BUFFER.setItem(buffername_value, attribute);
93
92
  } else if (actionname.toLowerCase() == "getbuffer") {
@@ -95,11 +94,11 @@ async function validate(attribute_name, attribute, actionname, buffer, buffernam
95
94
  }
96
95
  } catch (e) {
97
96
  console.error('Error in validate method:', e);
98
-
97
+
99
98
  }
100
99
  }
101
100
 
102
- async function validateAttributeData(attribute_name,attribute,buffer, buffername_value, datatype) {
101
+ async function validateAttributeData(attribute_name, attribute, buffer, buffername_value, datatype) {
103
102
  let assertionStatus = false; // Initialize status
104
103
  let valueToVerify;
105
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.55",
3
+ "version": "3.0.56",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",