froth-webdriverio-framework 0.1.6 → 0.1.8

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.
@@ -0,0 +1,51 @@
1
+ const deepmerge = require('deepmerge')
2
+ const commonconfig = require('./commonconfig');
3
+
4
+ console.log("common confg details--->" + commonconfig);
5
+
6
+ const commonmobconfig = deepmerge.all([commonconfig, deepmerge,{
7
+ user: process.env.BROWSERSTACK_USERNAME || 'naveen_OSt3Pw',
8
+ key: process.env.BROWSERSTACK_ACCESS_KEY || 'AuzPy8cHZ7sCBmMXakKe',
9
+
10
+ exclude: [],
11
+ logLevel: 'info',
12
+ coloredLogs: true,
13
+ screenshotPath: './errorShots/',
14
+ baseUrl: '',
15
+ waitforTimeout: 90000,
16
+ connectionRetryTimeout: 90000,
17
+ connectionRetryCount: 3,
18
+
19
+ framework: 'mocha',
20
+ mochaOpts: {
21
+ ui: 'bdd',
22
+ timeout: 90000
23
+ },
24
+
25
+
26
+
27
+ maxInstances: 10,
28
+
29
+ updateJob: false,
30
+ reporters: [
31
+ 'spec',
32
+ // ['allure', {
33
+ // outputDir: './androidReports/allure-results', // Specify the output directory
34
+ // disableWebdriverStepsReporting: true,
35
+ // disableWebdriverScreenshotsReporting: true,
36
+ // }],
37
+ ],
38
+ commonCapabilities: {
39
+ 'bstack:options': {
40
+ projectName: "YTL",
41
+ buildName: 'Build',
42
+ sessionName: 'Automation test session',
43
+ debug: true,
44
+ networkLogs: true
45
+ }
46
+ },
47
+
48
+
49
+ }]);
50
+
51
+ module.exports = commonmobconfig;
@@ -0,0 +1,30 @@
1
+ // This is the configuration file for iOS devices
2
+ const commonmobileconfig = require('./common.mobile.conf');
3
+
4
+ const iosconfig = deepmerge.all([commonmobileconfig, {
5
+ services: [
6
+ [
7
+ 'browserstack',
8
+ {
9
+ testObservability: true,
10
+ buildIdentifier: '${BUILD_NUMBER}',
11
+ browserstackLocal: true,
12
+ opts: { forcelocal: false, localIdentifier: "webdriverio-appium-app-browserstack-repo" },
13
+ app: process.env.BROWSERSTACK_APP_PATH || 'bs://d6588d0899a2ac5c485d4784af9ad28d06b98c44'
14
+ }
15
+ ]
16
+ ],
17
+
18
+ capabilities: [{
19
+ 'bstack:options': {
20
+ deviceName: process.env.DEVICENAME || "iPhone 15 Pro Max",
21
+ osVersion: process.env.OSVERSION || "17",
22
+ interactiveDebugging: true
23
+ }
24
+ }],
25
+
26
+ }]);
27
+
28
+ console.log("iosconfig-->", iosconfig);
29
+ module.exports = iosconfig;
30
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "readme": "WendriverIO Integration with [BrowserStack]",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",
@@ -33,9 +33,9 @@
33
33
  "@wdio/spec-reporter": "^8.36.1",
34
34
  "appium": "^2.5.4",
35
35
  "appium-uiautomator2-driver": "^3.2.0",
36
+ "browserstack-local": "^1.5.5",
36
37
  "deepmerge": "^4.3.1",
37
38
  "ts-node": "^10.9.2",
38
39
  "typescript": "^5.4.5"
39
40
  }
40
-
41
41
  }
package/android.conf.js DELETED
@@ -1,95 +0,0 @@
1
- exports.config = {
2
-
3
- user: process.env.BROWSERSTACK_USERNAME || 'subhrasubudhi_uf8nhj',
4
- key: process.env.BROWSERSTACK_ACCESS_KEY || 'DUGGqze7p9QMZb84y66s',
5
-
6
- hostname: 'hub.browserstack.com',
7
-
8
- services: [
9
- [
10
- 'browserstack',
11
- {
12
- buildIdentifier: '${BUILD_NUMBER}',
13
- browserstackLocal: true,
14
- opts: { forcelocal: false, localIdentifier: "webdriverio-appium-app-browserstack-repo" },
15
- // app: process.env.BROWSERSTACK_APP_PATH || '/Users/subhrasubudhi/WORKSPACES/WEBDRIVERIO/codeceptjs/android/test/Geneco.apk',
16
- app: 'bs://55f48309e6776984188c25d044bde2b3d90ea057'
17
- }
18
- ]
19
- ],
20
-
21
- capabilities: [{
22
- 'bstack:options': {
23
- deviceName: 'Samsung Galaxy S21',
24
- osVersion: "11.0"
25
- }
26
- }
27
- //, {
28
- // 'bstack:options': {
29
- // deviceName: 'Samsung Galaxy S10e',
30
- // osVersion: "9.0"
31
- // }
32
- // }
33
- ],
34
-
35
- commonCapabilities: {
36
- 'bstack:options': {
37
- projectName: "YTL APP",
38
- buildName: 'Android Yes App Build',
39
- sessionName: 'Yes App Session',
40
- debug: true,
41
- networkLogs: true
42
- // source: 'webdriverio:appium-sample-sdk:v1.0'
43
- }
44
- },
45
- maxInstances: 10,
46
-
47
- updateJob: false,
48
- specs: [
49
- [
50
- //'./android/specs/yesapp/login.js'
51
-
52
- ]],
53
- exclude: [],
54
- logLevel: 'info',
55
- coloredLogs: true,
56
- screenshotPath: './androidReports/',
57
- baseUrl: '',
58
- waitforTimeout: 10000,
59
- connectionRetryTimeout: 90000,
60
- connectionRetryCount: 3,
61
-
62
- framework: 'mocha',
63
- mochaOpts: {
64
- ui: 'bdd',
65
- timeout: 60000
66
- },
67
- before: function () {
68
- const chai = require('chai');
69
- global.expect = chai.expect;
70
- },
71
-
72
- reporters: [
73
- 'spec',
74
- ['allure', {
75
- outputDir: './androidReports/allure-results', // Specify the output directory
76
- disableWebdriverStepsReporting: true,
77
- disableWebdriverScreenshotsReporting: true,
78
- }],
79
- ],
80
- afterStep: function (test, context, { error, result, duration, passed, retries }) {
81
- // if (passed) {
82
- browser.takeScreenshot();
83
- // }
84
- },
85
- afterTest: async function (test, context, { error, result, duration, passed, retries }) {
86
- if (passed) { await browser.takeScreenshot() }
87
- }
88
-
89
- };
90
-
91
- // Code to support common capabilities
92
- exports.config.capabilities.forEach(function (caps) {
93
- for (let key in exports.config.commonCapabilities)
94
- caps[key] = { ...caps[key], ...exports.config.commonCapabilities[key] };
95
- });
package/ios.conf.js DELETED
@@ -1,75 +0,0 @@
1
-
2
- exports.config = {
3
- user: process.env.BROWSERSTACK_USERNAME || 'subhrasubudhi_uf8nhj',
4
- key: process.env.BROWSERSTACK_ACCESS_KEY || 'DUGGqze7p9QMZb84y66s',
5
-
6
- services: [
7
- [
8
- 'browserstack',
9
- {
10
- buildIdentifier: '${BUILD_NUMBER}',
11
- browserstackLocal: true,
12
- opts: { forcelocal: false, localIdentifier: "webdriverio-appium-app-browserstack-repo" },
13
- //app: process.env.BROWSERSTACK_APP_PATH || '/Users/subhrasubudhi/WORKSPACES/WEBDRIVERIO/codeceptjs/ios/test/BStackSampleApp.ipa'
14
- app: 'bs://512eefa5c0b9f103907f0c69f6ef811defc4a9cb'
15
- }
16
- ]
17
- ],
18
-
19
- capabilities: [{
20
- 'bstack:options': {
21
- deviceName: "iPhone 15 Pro Max",
22
- osVersion: "17"
23
- }
24
- }
25
-
26
- ],
27
-
28
- commonCapabilities: {
29
- 'bstack:options': {
30
- projectName: "Yes App",
31
- buildName: 'IOS Yes App build',
32
- sessionName: 'Yes App Session',
33
- debug: true,
34
- networkLogs: true,
35
- // source: 'webdriverio:appium-sample-sdk:v1.0'
36
- }
37
- },
38
-
39
- maxInstances: 10,
40
-
41
- updateJob: false,
42
- specs: [
43
- // './specs/single_test.js'
44
- ],
45
- exclude: [],
46
-
47
-
48
- logLevel: 'info',
49
- coloredLogs: true,
50
- screenshotPath: './errorShots/',
51
- baseUrl: '',
52
- waitforTimeout: 10000,
53
- connectionRetryTimeout: 90000,
54
- connectionRetryCount: 3,
55
-
56
- framework: 'mocha',
57
-
58
- mochaOpts: {
59
- ui: 'bdd',
60
- timeout: 60000
61
- },
62
-
63
- before: function () {
64
- const chai = require('chai');
65
- global.expect = chai.expect;
66
- },
67
-
68
-
69
- };
70
-
71
- // Code to support common capabilities
72
- exports.config.capabilities.forEach(function (caps) {
73
- for (let key in exports.config.commonCapabilities)
74
- caps[key] = { ...caps[key], ...exports.config.commonCapabilities[key] };
75
- });