froth-webdriverio-framework 3.0.155 → 3.0.156
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,7 +141,8 @@ 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}`);
|
|
@@ -152,10 +153,10 @@ const commonconfig = {
|
|
|
152
153
|
let scriptDetails = BUFFER.getItem("FROTHE_SUITE_DETAILS");
|
|
153
154
|
if (typeof scriptDetails === "string") {
|
|
154
155
|
scriptDetails = JSON.parse(scriptDetails);
|
|
155
|
-
}
|
|
156
|
+
}
|
|
156
157
|
const jwtScript = scriptDetails.find(s => s.scriptName === fileName.replace(".js", ""));
|
|
157
158
|
console.log("jwtScript:", jwtScript);
|
|
158
|
-
|
|
159
|
+
|
|
159
160
|
await exeDetails.updateScriptExecutionStatus(
|
|
160
161
|
BUFFER.getItem("ORGANISATION_DOMAIN_URL"),
|
|
161
162
|
BUFFER.getItem("FROTH_LOGIN_TOKEN"),
|