froth-webdriverio-framework 3.0.62 → 3.0.63
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/commonMethods/apicall.js +8 -8
- package/package.json +1 -1
package/commonMethods/apicall.js
CHANGED
|
@@ -101,7 +101,7 @@ async function validateAttributeData(attribute_name, attribute, buffer, bufferna
|
|
|
101
101
|
let assertionStatus = false; // Initialize status
|
|
102
102
|
let valueToVerify;
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
try {
|
|
105
105
|
//if buffer is true, get the value from buffer
|
|
106
106
|
buffer ? valueToVerify = BUFFER.getItem(buffername_value) : valueToVerify = buffername_value;
|
|
107
107
|
|
|
@@ -118,14 +118,14 @@ async function validateAttributeData(attribute_name, attribute, buffer, bufferna
|
|
|
118
118
|
let annotationMessage = `${attribute_name} verification passed. Actual text: ${attribute}, Expected text: ${valueToVerify}.`;
|
|
119
119
|
await amendToBrowserstack(annotationMessage, "info");
|
|
120
120
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
} catch (e) {
|
|
122
|
+
console.error('Error in validateAttributeData:', e);
|
|
123
|
+
console.log(`${attribute_name} verification failed. Expected text: ${valueToVerify}.`);
|
|
124
|
+
let annotationMessage = `${attribute_name} verification failed. Expected text: ${valueToVerify}.`;
|
|
125
|
+
await amendToBrowserstack(annotationMessage, "error");
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
throw e;
|
|
128
|
+
}
|
|
129
129
|
}
|
|
130
130
|
// async function amendToBrowserstack(annotationMessage, level) {
|
|
131
131
|
// try {
|