froth-webdriverio-framework 5.0.0 → 5.0.2
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
async function getExecuitonDetails(frothUrl, token, id) {
|
|
6
6
|
let jsondata = {};
|
|
7
7
|
if (id != 0 || id != null || id != undefined) {
|
|
8
|
-
const url = `${frothUrl}/api/test-execution-retrieve/${id}
|
|
8
|
+
const url = `${frothUrl}/api/test-execution-retrieve/${id}/`;
|
|
9
9
|
|
|
10
10
|
try {
|
|
11
11
|
console.log("URL: " + url)
|
|
@@ -34,11 +34,7 @@ async function getExecuitonDetails(frothUrl, token, id) {
|
|
|
34
34
|
|
|
35
35
|
return jsondata;
|
|
36
36
|
} else if (response.status === 401) { // Unauthorized, token expired
|
|
37
|
-
|
|
38
|
-
// const newToken = await getLoginToken(BUFFER.getItem("SERVICE_USER"), BUFFER.getItem("SERVICE_PASSWORD")); // You need to implement the login function
|
|
39
|
-
// Retry the request with the new token
|
|
40
|
-
// return getExecuitonDetails(frothUrl, newToken, id);
|
|
41
|
-
// console.log("Unauthorized, token expired" + response.status)
|
|
37
|
+
|
|
42
38
|
console.error("Unauthorized, token expired" + response.status);
|
|
43
39
|
|
|
44
40
|
} else {
|
|
@@ -270,6 +270,7 @@ const commonconfig = {
|
|
|
270
270
|
console.error('====> Error occurred:', error.message);
|
|
271
271
|
if (error.message.includes('Automate testing time expired')) {
|
|
272
272
|
console.log('❌ Global error: Session timed out on BrowserStack.');
|
|
273
|
+
resultdetails.excution_status = 'FAILED';
|
|
273
274
|
resultdetails.comments.push(`Global error: Session timed out on BrowserStack.Please check ths session: ${result}`);
|
|
274
275
|
|
|
275
276
|
await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
|