froth-webdriverio-framework 1.0.40 → 1.0.41
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.
|
@@ -38,8 +38,8 @@ async function getExecuitonDetails(frothUrl, token, id) {
|
|
|
38
38
|
return getExecuitonDetails(frothUrl, newToken, id);
|
|
39
39
|
} else {
|
|
40
40
|
const errorText = await response.text();
|
|
41
|
-
console.error(
|
|
42
|
-
|
|
41
|
+
console.error(`Data fetch failed response: ${response.status}`);
|
|
42
|
+
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
|
package/api/getsuiteDetails.js
CHANGED
|
@@ -34,8 +34,8 @@ async function getSuiteDetails(frothUrl, token, id) {
|
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
const errorText = await response.text();
|
|
37
|
-
console.error(
|
|
38
|
-
|
|
37
|
+
console.error(`Data fetch failed response: ${response.status}`);
|
|
38
|
+
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
|
package/api/readTestdata.js
CHANGED
|
@@ -41,8 +41,9 @@ async function getDataById(frothUrl, token, id) {
|
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
const errorText = await response.text();
|
|
44
|
-
console.error('Data fetch failed response:', errorText);
|
|
45
|
-
|
|
44
|
+
// console.error('Data fetch failed response:', errorText);
|
|
45
|
+
console.error(`Data fetch failed response: ${response.status}`);
|
|
46
|
+
// throw new Error(`HTTP error! status: ${response.status}`);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
|
package/config/ios.conf.js
CHANGED
|
@@ -10,9 +10,10 @@ const iosconfig = deepmerge.all([commonmobileconfig, {
|
|
|
10
10
|
buildName: "IOS",
|
|
11
11
|
buildIdentifier: 'BUILD',
|
|
12
12
|
browserstackLocal: false,
|
|
13
|
-
opts: {
|
|
14
|
-
forcelocal: false,
|
|
15
|
-
localIdentifier: "webdriverio-appium"
|
|
13
|
+
opts: {
|
|
14
|
+
forcelocal: false,
|
|
15
|
+
localIdentifier: "webdriverio-appium"
|
|
16
|
+
},
|
|
16
17
|
app: process.env.BROWSERSTACK_APP_PATH || 'bs://d6588d0899a2ac5c485d4784af9ad28d06b98c44'
|
|
17
18
|
}
|
|
18
19
|
]
|
|
@@ -22,10 +23,15 @@ const iosconfig = deepmerge.all([commonmobileconfig, {
|
|
|
22
23
|
'bstack:options': {
|
|
23
24
|
deviceName: process.env.DEVICENAME || "iPhone 15 Pro Max1",
|
|
24
25
|
osVersion: process.env.OSVERSION || "17",
|
|
26
|
+
platformName: 'iOS',
|
|
25
27
|
interactiveDebugging: true
|
|
26
28
|
}
|
|
27
29
|
}],
|
|
28
30
|
|
|
31
|
+
before: function (capabilities, specs) {
|
|
32
|
+
// browser.maximizeWindow()
|
|
33
|
+
process.env.BS_SESSION_TYPE = "app-automate";
|
|
34
|
+
},
|
|
29
35
|
}]);
|
|
30
36
|
|
|
31
37
|
module.exports = iosconfig;
|
package/config/web.conf.bs.js
CHANGED
|
@@ -66,12 +66,7 @@ const webbsconfig = deepmerge.all([commonconfig, {
|
|
|
66
66
|
browser.maximizeWindow()
|
|
67
67
|
process.env.BS_SESSION_TYPE="automate";
|
|
68
68
|
},
|
|
69
|
-
|
|
70
|
-
// // Code to run after all tests
|
|
71
|
-
// if (error) {
|
|
72
|
-
// browser.takeScreenshot();
|
|
73
|
-
// }
|
|
74
|
-
// },
|
|
69
|
+
|
|
75
70
|
|
|
76
71
|
// ====================
|
|
77
72
|
// BrowserStack Options
|