froth-webdriverio-framework 3.0.156 → 3.0.158
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.
|
@@ -11,8 +11,8 @@ async function getBSBuildDetails(sessiontype, bs_username, bs_pwd) {
|
|
|
11
11
|
let hashed_id = null;
|
|
12
12
|
|
|
13
13
|
// const sessionid= BUFFER.getItem("SESSION_ID");
|
|
14
|
-
console.log("Browsersatck build name :" + process.env.
|
|
15
|
-
const url = `https://api.browserstack.com/${sessiontype}/builds.json?name=${process.env.
|
|
14
|
+
console.log("Browsersatck build name :" + process.env.AUTOMATION_BUILD_NAME)
|
|
15
|
+
const url = `https://api.browserstack.com/${sessiontype}/builds.json?name=${process.env.AUTOMATION_BUILD_NAME}`;
|
|
16
16
|
|
|
17
17
|
console.log("url:" + url)
|
|
18
18
|
|
|
@@ -146,9 +146,10 @@ const commonconfig = {
|
|
|
146
146
|
}
|
|
147
147
|
if (error) {
|
|
148
148
|
console.error(`========= Error occured while executing the test: ${error.message}`);
|
|
149
|
-
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}`);
|
|
150
151
|
|
|
151
|
-
|
|
152
|
+
scriptresult = "FAILED"
|
|
152
153
|
}
|
|
153
154
|
let scriptDetails = BUFFER.getItem("FROTHE_SUITE_DETAILS");
|
|
154
155
|
if (typeof scriptDetails === "string") {
|
|
@@ -24,7 +24,7 @@ function setupPrerequisites() {
|
|
|
24
24
|
process.env.BROWSERSTACK_ACCESS_KEY = capabilities.accessKey
|
|
25
25
|
console.log('capabilities.platformName:', capabilities.platformName);
|
|
26
26
|
process.env.BS_SESSION_TYPE = capabilities.platformName === 'android' || capabilities.platformName === 'ios' ? 'app-automate' : 'automate';
|
|
27
|
-
capabilities.buildName = process.env.
|
|
27
|
+
capabilities.buildName = process.env.AUTOMATION_BUILD_NAME;
|
|
28
28
|
|
|
29
29
|
}
|
|
30
30
|
|