froth-webdriverio-framework 0.1.6 → 0.1.7

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,54 @@
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, {
7
+ // user: process.env.BROWSERSTACK_USERNAME || 'subhrasubudhi_uf8nhj',
8
+ // key: process.env.BROWSERSTACK_ACCESS_KEY || 'DUGGqze7p9QMZb84y66s',
9
+
10
+ user: process.env.BROWSERSTACK_USERNAME || 'naveen_OSt3Pw',
11
+ key: process.env.BROWSERSTACK_ACCESS_KEY || 'AuzPy8cHZ7sCBmMXakKe',
12
+
13
+ exclude: [],
14
+ logLevel: 'info',
15
+ coloredLogs: true,
16
+ screenshotPath: './errorShots/',
17
+ baseUrl: '',
18
+ waitforTimeout: 90000,
19
+ connectionRetryTimeout: 90000,
20
+ connectionRetryCount: 3,
21
+
22
+ framework: 'mocha',
23
+ mochaOpts: {
24
+ ui: 'bdd',
25
+ timeout: 90000
26
+ },
27
+
28
+
29
+
30
+ maxInstances: 10,
31
+
32
+ updateJob: false,
33
+ reporters: [
34
+ 'spec',
35
+ // ['allure', {
36
+ // outputDir: './androidReports/allure-results', // Specify the output directory
37
+ // disableWebdriverStepsReporting: true,
38
+ // disableWebdriverScreenshotsReporting: true,
39
+ // }],
40
+ ],
41
+ commonCapabilities: {
42
+ 'bstack:options': {
43
+ projectName: "YTL",
44
+ buildName: 'Build',
45
+ sessionName: 'Automation test session',
46
+ debug: true,
47
+ networkLogs: true
48
+ }
49
+ },
50
+
51
+
52
+ }]);
53
+
54
+ module.exports = commonmobconfig;
@@ -0,0 +1,31 @@
1
+ // This is the configuration file for iOS devices
2
+ const deepmerge = require('deepmerge')
3
+ const commonmobileconfig = require('./common.mobile.conf');
4
+
5
+ const iosconfig = deepmerge.all([commonmobileconfig, {
6
+ services: [
7
+ [
8
+ 'browserstack',
9
+ {
10
+ testObservability: true,
11
+ buildIdentifier: '${BUILD_NUMBER}',
12
+ browserstackLocal: true,
13
+ opts: { forcelocal: false, localIdentifier: "webdriverio-appium-app-browserstack-repo" },
14
+ app: process.env.BROWSERSTACK_APP_PATH || 'bs://d6588d0899a2ac5c485d4784af9ad28d06b98c44'
15
+ }
16
+ ]
17
+ ],
18
+
19
+ capabilities: [{
20
+ 'bstack:options': {
21
+ deviceName: process.env.DEVICENAME || "iPhone 15 Pro Max",
22
+ osVersion: process.env.OSVERSION || "17",
23
+ interactiveDebugging: true
24
+ }
25
+ }],
26
+
27
+ }]);
28
+
29
+ console.log("iosconfig-->", iosconfig);
30
+ module.exports = iosconfig;
31
+
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.7",
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
  }