froth-webdriverio-framework 3.0.107 → 3.0.109
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.
|
@@ -100,7 +100,7 @@ async function getExecuitonScriptDetails(frothUrl, token, execution_id, script_i
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
|
|
103
|
-
|
|
103
|
+
// if (id != 0) {
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
const url = `${frothUrl}/api/test-execution-update/${id}/`;
|
|
@@ -148,9 +148,9 @@ async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
|
|
|
148
148
|
console.error('Error fetching data:', error);
|
|
149
149
|
|
|
150
150
|
}
|
|
151
|
-
} else {
|
|
152
|
-
|
|
153
|
-
}
|
|
151
|
+
// } else {
|
|
152
|
+
// console.error('Error fetching data: Invalid ID');
|
|
153
|
+
// }
|
|
154
154
|
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -44,14 +44,17 @@ const commonconfig = {
|
|
|
44
44
|
|
|
45
45
|
if (process.env.PLATFORM === 'browserstack') {
|
|
46
46
|
/// console.log("capabilities:", capabilities);
|
|
47
|
-
// capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
|
|
48
|
-
capabilities.app = process.env.BROWSERSTACK_APP_PATH;
|
|
49
47
|
capabilities.browserstackLocal = process.env.BROWSERSTACK_LOCAL;
|
|
50
|
-
|
|
48
|
+
// capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
|
|
49
|
+
if (process.env.BROWSERSTACK_APP_PATH)
|
|
50
|
+
capabilities.app = process.env.BROWSERSTACK_APP_PATH;
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
if (process.env.MEDIA_FILES) {
|
|
51
54
|
console.log("Media Files:", JSON.parse(process.env.MEDIA_FILES));
|
|
52
55
|
console.log("Size of Media Files:", process.env.MEDIA_FILES.length);
|
|
53
56
|
if (process.env.MEDIA_FILES.length > 0)
|
|
54
|
-
|
|
57
|
+
capabilities['browserstack.uploadMedia'] = JSON.parse(process.env.MEDIA_FILES);
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
console.log(`Running tests on after app,bslocal,mediafiles: ${JSON.stringify(capabilities)}`);
|
|
@@ -74,7 +77,7 @@ const commonconfig = {
|
|
|
74
77
|
await getBSSessionDetails(process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, process.env.BROWSERSTACK_ACCESS_KEY);
|
|
75
78
|
|
|
76
79
|
const resultdetails = {};
|
|
77
|
-
exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
|
|
80
|
+
await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
|
|
78
81
|
|
|
79
82
|
} catch (e) {
|
|
80
83
|
console.log("Error in beforeSuite:", e);
|
|
@@ -4,7 +4,6 @@ const exeDetails = require("../froth_api_calls/getexecutionDetails")
|
|
|
4
4
|
const getSuiteDetails = require("../froth_api_calls/getsuiteDetails");
|
|
5
5
|
const getDataById = require("../froth_api_calls/readTestdata");
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
async function generateBuildNumber() {
|
|
9
8
|
try {
|
|
10
9
|
const now = new Date();
|