froth-webdriverio-framework 3.0.1 → 3.0.3
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
async function getBSBuildDetails(sessiontype, bs_username, bs_pwd) {
|
|
3
3
|
try {
|
|
4
4
|
// const sessionId = sessionIdd;
|
|
5
|
+
console.log("sessiontype:"+sessiontype)
|
|
5
6
|
const username = bs_username;
|
|
6
7
|
const accessKey = bs_pwd;
|
|
7
8
|
const basicAuth = btoa(`${username}:${accessKey}`);
|
|
@@ -33,7 +34,7 @@ async function getBSBuildDetails(sessiontype, bs_username, bs_pwd) {
|
|
|
33
34
|
|
|
34
35
|
} else {
|
|
35
36
|
const errorText = await response.text();
|
|
36
|
-
console.error(`Data fetch failed response:${response.status}`);
|
|
37
|
+
console.error(`Data fetch failed response in getBSBuildDetails:${response.status}`);
|
|
37
38
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
38
39
|
}
|
|
39
40
|
|
|
@@ -83,7 +84,7 @@ async function getBSSessionDetails(sessiontype, bs_username, bs_pwd) {
|
|
|
83
84
|
|
|
84
85
|
} else {
|
|
85
86
|
const errorText = await response.text();
|
|
86
|
-
console.error(`Data fetch failed response:${response.status}`);
|
|
87
|
+
console.error(`Data fetch failed response in getBSSessionDetails :${response.status}`);
|
|
87
88
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
88
89
|
}
|
|
89
90
|
|
package/api/getDBdetails.js
CHANGED
|
@@ -31,7 +31,7 @@ async function getDbDetails(frothUrl, token, id) {
|
|
|
31
31
|
}
|
|
32
32
|
else {
|
|
33
33
|
const errorText = await response.text();
|
|
34
|
-
console.error(`Data fetch failed response: ${response.status}`);
|
|
34
|
+
console.error(`Data fetch failed response in getDbDetails: ${response.status}`);
|
|
35
35
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -37,7 +37,7 @@ async function getExecuitonDetails(frothUrl, token, id) {
|
|
|
37
37
|
return getExecuitonDetails(frothUrl, newToken, id);
|
|
38
38
|
} else {
|
|
39
39
|
const errorText = await response.text();
|
|
40
|
-
console.error(`Data fetch failed response: ${response.status}`);
|
|
40
|
+
console.error(`Data fetch failed response in getExecuitonDetails: ${response.status}`);
|
|
41
41
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -83,7 +83,7 @@ async function getExecuitonScriptDetails(frothUrl, token, execution_id, script_i
|
|
|
83
83
|
return getExecuitonScriptDetails(frothUrl, newToken, execution_id, script_id);
|
|
84
84
|
} else {
|
|
85
85
|
const errorText = await response.text();
|
|
86
|
-
console.error(`Data fetch failed response: ${response.status}`);
|
|
86
|
+
console.error(`Data fetch failed response in getExecuitonScriptDetails: ${response.status}`);
|
|
87
87
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -35,7 +35,7 @@ async function getintegrationdetails(frothUrl, token, id) {
|
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
37
|
const errorText = await response.text();
|
|
38
|
-
console.error('Data fetch failed response:', errorText);
|
|
38
|
+
console.error('Data fetch failed response in getintegrationdetails:', errorText);
|
|
39
39
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
40
40
|
}
|
|
41
41
|
|
package/api/getsuiteDetails.js
CHANGED
|
@@ -45,7 +45,7 @@ async function getSuiteDetails(frothUrl, token, id) {
|
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
const errorText = await response.text();
|
|
48
|
-
console.error(`Data fetch failed response: ${response.status}`);
|
|
48
|
+
console.error(`Data fetch failed response in getSuiteDetails: ${response.status}`);
|
|
49
49
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
50
50
|
}
|
|
51
51
|
|
package/api/readTestdata.js
CHANGED
|
@@ -42,7 +42,7 @@ async function getDataById(frothUrl, token, id) {
|
|
|
42
42
|
else {
|
|
43
43
|
const errorText = await response.text();
|
|
44
44
|
// console.error('Data fetch failed response:', errorText);
|
|
45
|
-
console.error(`Data fetch failed response: ${response.status}`);
|
|
45
|
+
console.error(`Data fetch failed response in getDataById: ${response.status}`);
|
|
46
46
|
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
47
47
|
}
|
|
48
48
|
|
package/config/commonconfig.js
CHANGED
|
@@ -36,7 +36,8 @@ const commonconfig = {
|
|
|
36
36
|
|
|
37
37
|
// const sessionId = browser.sessionId;
|
|
38
38
|
// BUFFER.setItem("SESSION_ID", sessionId)
|
|
39
|
-
if (isBrowserStackEnabled) {
|
|
39
|
+
if (isBrowserStackEnabled === true) {
|
|
40
|
+
console.log("BrowserStack is enabled");
|
|
40
41
|
await getBSSessionDetails(process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, process.env.BROWSERSTACK_ACCESS_KEY);
|
|
41
42
|
}
|
|
42
43
|
const resultdetails = {};
|