froth-webdriverio-framework 1.0.37 → 1.0.39
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.
- package/config/common.mobile.conf.js +1 -0
- package/config/commonconfig.js +6 -5
- package/config/web.conf.bs.js +25 -29
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const deepmerge = require('deepmerge')
|
|
2
2
|
const commonconfig = require('./commonconfig');
|
|
3
|
+
console.log("device name in common mobile:", process.env.BROWSERSTACK_ACCESS_KEY);
|
|
3
4
|
console.log("device name in common mobile:", Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8'));
|
|
4
5
|
console.log("device name in common mobile:", process.env.BROWSERSTACK_USERNAME);
|
|
5
6
|
|
package/config/commonconfig.js
CHANGED
|
@@ -23,12 +23,13 @@ const commonconfig = {
|
|
|
23
23
|
//console.log("ALL JSON DATA in env variable :" + JSON.stringify(process.env));
|
|
24
24
|
},
|
|
25
25
|
|
|
26
|
-
before: function (capabilities, specs) {
|
|
26
|
+
// before: function (capabilities, specs) {
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
// // Code to run before the test suite starts
|
|
29
|
+
// console.log('Starting test suite IN EBFORE HOOK ...');
|
|
30
|
+
// browser.maximizeWindow();
|
|
31
|
+
// // Initialize variables, configure environment, etc.
|
|
32
|
+
// },
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
/**
|
package/config/web.conf.bs.js
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
const deepmerge = require('deepmerge')
|
|
2
|
+
const commonconfig = require('./commonconfig');
|
|
3
|
+
|
|
4
|
+
const webbsconfig = deepmerge.all([commonconfig, {
|
|
2
5
|
// ====================
|
|
3
6
|
// BrowserStack Configuration
|
|
4
7
|
// ====================
|
|
5
|
-
user: 'prabathkumar_qavxGX',
|
|
6
|
-
key: 'RvqEi62rhwa5QwGJtweZ',
|
|
7
|
-
browserstackLocal:
|
|
8
|
+
user: process.env.BROWSERSTACK_USERNAME || 'prabathkumar_qavxGX',
|
|
9
|
+
key: Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8') || 'RvqEi62rhwa5QwGJtweZ',
|
|
10
|
+
browserstackLocal: false, // Set to true if using BrowserStack Local Testing
|
|
8
11
|
opts: { forceLocal: true },
|
|
9
12
|
// ====================
|
|
10
13
|
// Specify Test Files
|
|
11
14
|
// ====================
|
|
12
|
-
|
|
15
|
+
|
|
13
16
|
services: [
|
|
14
17
|
['browserstack', {
|
|
15
18
|
testObservability: true,
|
|
16
19
|
testObservabilityOptions: {
|
|
17
|
-
user: 'prabathkumar_qavxGX' || process.env.BROWSERSTACK_USERNAME,
|
|
18
|
-
key: 'RvqEi62rhwa5QwGJtweZ' || process.env.BROWSERSTACK_ACCESS_KEY,
|
|
19
|
-
projectName:
|
|
20
|
-
buildName: '
|
|
21
|
-
buildTag: '
|
|
20
|
+
// user: 'prabathkumar_qavxGX' || process.env.BROWSERSTACK_USERNAME,
|
|
21
|
+
// key: 'RvqEi62rhwa5QwGJtweZ' || process.env.BROWSERSTACK_ACCESS_KEY,
|
|
22
|
+
projectName: process.env.PROJECTNAME || "roboticodigital",
|
|
23
|
+
buildName: 'WEB BUILD',
|
|
24
|
+
buildTag: 'WEB BUILD',
|
|
22
25
|
},
|
|
23
26
|
}]
|
|
24
27
|
],
|
|
@@ -27,8 +30,8 @@ config = {
|
|
|
27
30
|
// ====================
|
|
28
31
|
capabilities: [
|
|
29
32
|
{
|
|
30
|
-
browserName: 'chrome', // Choose the browser you want to test
|
|
31
|
-
browserVersion: 'latest', // Specify the browser version
|
|
33
|
+
browserName: process.env.BROWSERSTACK_BROWSER || 'chrome', // Choose the browser you want to test
|
|
34
|
+
browserVersion: process.env.BROWSERSTACK_BROWSER_VERSION || 'latest', // Specify the browser version
|
|
32
35
|
os: 'Windows', // Specify the operating system
|
|
33
36
|
os_version: '10', // Specify the operating system version
|
|
34
37
|
resolution: '1920x1080', // Specify the screen resolution
|
|
@@ -52,15 +55,8 @@ config = {
|
|
|
52
55
|
// Framework
|
|
53
56
|
// ====================
|
|
54
57
|
framework: 'mocha', // Use the Mocha framework
|
|
55
|
-
reporters: ['spec'
|
|
56
|
-
|
|
57
|
-
// 'allure',
|
|
58
|
-
// {
|
|
59
|
-
// outputDir: './web-report/allure-result/',
|
|
60
|
-
// disableWebdriverStepsReporting: true,
|
|
61
|
-
// disableWebdriverScreenshotsReporting: false,
|
|
62
|
-
// },
|
|
63
|
-
// ],
|
|
58
|
+
reporters: ['spec'
|
|
59
|
+
|
|
64
60
|
], // Use the spec reporter
|
|
65
61
|
|
|
66
62
|
// ====================
|
|
@@ -69,12 +65,12 @@ config = {
|
|
|
69
65
|
before: function (capabilities, specs) {
|
|
70
66
|
browser.maximizeWindow()
|
|
71
67
|
},
|
|
72
|
-
after: function (capabilities, specs) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
68
|
+
// after: function (capabilities, specs) {
|
|
69
|
+
// // Code to run after all tests
|
|
70
|
+
// if (error) {
|
|
71
|
+
// browser.takeScreenshot();
|
|
72
|
+
// }
|
|
73
|
+
// },
|
|
78
74
|
|
|
79
75
|
// ====================
|
|
80
76
|
// BrowserStack Options
|
|
@@ -90,6 +86,6 @@ config = {
|
|
|
90
86
|
ui: 'bdd', // Set the test interface to BDD
|
|
91
87
|
timeout: 60000, // Set the timeout for test cases in milliseconds
|
|
92
88
|
},
|
|
93
|
-
};
|
|
89
|
+
}]);
|
|
94
90
|
|
|
95
|
-
module.exports =
|
|
91
|
+
module.exports = webbsconfig;
|