froth-webdriverio-framework 3.0.155 → 3.0.157
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.
|
@@ -141,21 +141,23 @@ const commonconfig = {
|
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
143
|
scriptresult = "FAILED"
|
|
144
|
-
resultdetails.comments.
|
|
144
|
+
if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
|
|
145
|
+
resultdetails.comments.push(`${test.title} - failed: ${error.message}`);
|
|
145
146
|
}
|
|
146
147
|
if (error) {
|
|
147
148
|
console.error(`========= Error occured while executing the test: ${error.message}`);
|
|
148
|
-
resultdetails.comments.
|
|
149
|
+
if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
|
|
150
|
+
resultdetails.comments.push(`${test.title} - error occured: ${error.message}`);
|
|
149
151
|
|
|
150
|
-
|
|
152
|
+
scriptresult = "FAILED"
|
|
151
153
|
}
|
|
152
154
|
let scriptDetails = BUFFER.getItem("FROTHE_SUITE_DETAILS");
|
|
153
155
|
if (typeof scriptDetails === "string") {
|
|
154
156
|
scriptDetails = JSON.parse(scriptDetails);
|
|
155
|
-
}
|
|
157
|
+
}
|
|
156
158
|
const jwtScript = scriptDetails.find(s => s.scriptName === fileName.replace(".js", ""));
|
|
157
159
|
console.log("jwtScript:", jwtScript);
|
|
158
|
-
|
|
160
|
+
|
|
159
161
|
await exeDetails.updateScriptExecutionStatus(
|
|
160
162
|
BUFFER.getItem("ORGANISATION_DOMAIN_URL"),
|
|
161
163
|
BUFFER.getItem("FROTH_LOGIN_TOKEN"),
|