froth-webdriverio-framework 6.0.36 → 6.0.38

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/logs/percy.log CHANGED
@@ -1,6 +1,6 @@
1
- 2025-12-13T03:08:46.174Z DEBUG @wdio/browserstack-service Starting percy
2
- 2025-12-13T03:08:49.844Z ERROR @wdio/browserstack-service Unable to fetch percy project token
3
- 2025-12-13T03:08:49.850Z DEBUG @wdio/browserstack-service Error in percy setup Error: Could not start percy, check percy logs for info.
1
+ 2025-12-13T04:05:24.263Z DEBUG @wdio/browserstack-service Starting percy
2
+ 2025-12-13T04:05:25.398Z ERROR @wdio/browserstack-service Unable to fetch percy project token
3
+ 2025-12-13T04:05:25.402Z DEBUG @wdio/browserstack-service Error in percy setup Error: Could not start percy, check percy logs for info.
4
4
  at BrowserstackLauncherService.setupPercy (file:///Users/subhrasubudhi/WORKSPACES/WEBDRIVERIO/wdio_fresh_framework/node_modules/@wdio/browserstack-service/build/index.js:9351:15)
5
5
  at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
6
6
  at async BrowserstackLauncherService.onPrepare (file:///Users/subhrasubudhi/WORKSPACES/WEBDRIVERIO/wdio_fresh_framework/node_modules/@wdio/browserstack-service/build/index.js:9218:9)
package/package.json CHANGED
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.36",
3
+ "version": "6.0.38",
4
4
  "readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
5
5
  "description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
6
6
  "scripts": {
7
- "test": "npx wdio examples/run-parallel-test/parallel.conf.js",
8
- "local": "npx wdio examples/run-local-test/local.conf.mix.js",
9
- "test-web": "TEST_TYPE=web npx wdio examples/run-local-test/local.conf.mix.js",
10
- "test-android": "TEST_TYPE=android npx wdio examples/run-local-test/local.conf.mix.js",
11
- "test-ios": "TEST_TYPE=ios npx wdio examples/run-local-test/local.conf.mix.js",
12
7
  "wdio": "wdio run ./wdio.conf.js"
13
8
  },
14
9
  "repository": {
@@ -30,10 +25,13 @@
30
25
  "webdriverio": "^9"
31
26
  },
32
27
  "devDependencies": {
28
+ "@wdio/appium-service": "^9.21.0",
33
29
  "@wdio/browserstack-service": "^9.21.0",
34
30
  "@wdio/cli": "^9.21.1",
35
31
  "@wdio/local-runner": "^9.21.0",
36
32
  "@wdio/mocha-framework": "^9.21.0",
37
- "@wdio/spec-reporter": "^9.20.0"
33
+ "@wdio/spec-reporter": "^9.20.0",
34
+ "appium": "^3.1.2",
35
+ "appium-uiautomator2-driver": "^6.7.1"
38
36
  }
39
37
  }
package/wdio.conf.js ADDED
@@ -0,0 +1,316 @@
1
+ exports.config = {
2
+ //
3
+ // ====================
4
+ // Runner Configuration
5
+ // ====================
6
+ // WebdriverIO supports running e2e tests as well as unit and component tests.
7
+ runner: 'local',
8
+ port: 4723,
9
+ //
10
+ // =================
11
+ // Service Providers
12
+ // =================
13
+ // WebdriverIO supports Sauce Labs, Browserstack, Testing Bot and LambdaTest (other cloud providers
14
+ // should work too though). These services define specific user and key (or access key)
15
+ // values you need to put in here in order to connect to these services.
16
+ //
17
+ user: process.env.naveen_OSt3Pw,
18
+ key: process.env.B9Rx28MTKFzRJ2QEVK1c,
19
+ //
20
+ // If you run your tests on Sauce Labs you can specify the region you want to run your tests
21
+ // in via the `region` property. Available short handles for regions are `us` (default) and `eu`.
22
+ // These regions are used for the Sauce Labs VM cloud and the Sauce Labs Real Device Cloud.
23
+ // If you don't provide the region it will default for the `us`
24
+
25
+ //
26
+ // ==================
27
+ // Specify Test Files
28
+ // ==================
29
+ // Define which test specs should run. The pattern is relative to the directory
30
+ // of the configuration file being run.
31
+ //
32
+ // The specs are defined as an array of spec files (optionally using wildcards
33
+ // that will be expanded). The test for each spec file will be run in a separate
34
+ // worker process. In order to have a group of spec files run in the same worker
35
+ // process simply enclose them in an array within the specs array.
36
+ //
37
+ // The path of the spec files will be resolved relative from the directory of
38
+ // of the config file unless it's absolute.
39
+ //
40
+ specs: [
41
+ // ToDo: define location for spec files here
42
+ ],
43
+ // Patterns to exclude.
44
+ exclude: [
45
+ // 'path/to/excluded/files'
46
+ ],
47
+ //
48
+ // ============
49
+ // Capabilities
50
+ // ============
51
+ // Define your capabilities here. WebdriverIO can run multiple capabilities at the same
52
+ // time. Depending on the number of capabilities, WebdriverIO launches several test
53
+ // sessions. Within your capabilities you can overwrite the spec and exclude options in
54
+ // order to group specific specs to a specific capability.
55
+ //
56
+ // First, you can define how many instances should be started at the same time. Let's
57
+ // say you have 3 different capabilities (Chrome, Firefox, and Safari) and you have
58
+ // set maxInstances to 1; wdio will spawn 3 processes. Therefore, if you have 10 spec
59
+ // files and you set maxInstances to 10, all spec files will get tested at the same time
60
+ // and 30 processes will get spawned. The property handles how many capabilities
61
+ // from the same test should run tests.
62
+ //
63
+ maxInstances: 10,
64
+ //
65
+ // If you have trouble getting all important capabilities together, check out the
66
+ // Sauce Labs platform configurator - a great tool to configure your capabilities:
67
+ // https://saucelabs.com/platform/platform-configurator
68
+ //
69
+ capabilities: [{
70
+ // capabilities for local Appium web tests on an Android Emulator
71
+ platformName: 'Android',
72
+ browserName: 'Chrome',
73
+ 'appium:deviceName': 'Android GoogleAPI Emulator',
74
+ 'appium:platformVersion': '12.0',
75
+ 'appium:automationName': 'UiAutomator2'
76
+ }],
77
+
78
+ //
79
+ // ===================
80
+ // Test Configurations
81
+ // ===================
82
+ // Define all options that are relevant for the WebdriverIO instance here
83
+ //
84
+ // Level of logging verbosity: trace | debug | info | warn | error | silent
85
+ logLevel: 'info',
86
+ //
87
+ // Set specific log levels per logger
88
+ // loggers:
89
+ // - webdriver, webdriverio
90
+ // - @wdio/browserstack-service, @wdio/lighthouse-service, @wdio/sauce-service
91
+ // - @wdio/mocha-framework, @wdio/jasmine-framework
92
+ // - @wdio/local-runner
93
+ // - @wdio/sumologic-reporter
94
+ // - @wdio/cli, @wdio/config, @wdio/utils
95
+ // Level of logging verbosity: trace | debug | info | warn | error | silent
96
+ // logLevels: {
97
+ // webdriver: 'info',
98
+ // '@wdio/appium-service': 'info'
99
+ // },
100
+ //
101
+ // If you only want to run your tests until a specific amount of tests have failed use
102
+ // bail (default is 0 - don't bail, run all tests).
103
+ bail: 0,
104
+ //
105
+ // Set a base URL in order to shorten url command calls. If your `url` parameter starts
106
+ // with `/`, the base url gets prepended, not including the path portion of your baseUrl.
107
+ // If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url
108
+ // gets prepended directly.
109
+ // baseUrl: 'http://localhost:8080',
110
+ //
111
+ // Default timeout for all waitFor* commands.
112
+ waitforTimeout: 10000,
113
+ //
114
+ // Default timeout in milliseconds for request
115
+ // if browser driver or grid doesn't send response
116
+ connectionRetryTimeout: 120000,
117
+ //
118
+ // Default request retries count
119
+ connectionRetryCount: 3,
120
+ //
121
+ // Test runner services
122
+ // Services take over a specific job you don't want to take care of. They enhance
123
+ // your test setup with almost no effort. Unlike plugins, they don't add new
124
+ // commands. Instead, they hook themselves up into the test process.
125
+ services: ['appium', 'browserstack'],
126
+
127
+ // Framework you want to run your specs with.
128
+ // The following are supported: Mocha, Jasmine, and Cucumber
129
+ // see also: https://webdriver.io/docs/frameworks
130
+ //
131
+ // Make sure you have the wdio adapter package for the specific framework installed
132
+ // before running any tests.
133
+ framework: 'mocha',
134
+
135
+ //
136
+ // The number of times to retry the entire specfile when it fails as a whole
137
+ // specFileRetries: 1,
138
+ //
139
+ // Delay in seconds between the spec file retry attempts
140
+ // specFileRetriesDelay: 0,
141
+ //
142
+ // Whether or not retried spec files should be retried immediately or deferred to the end of the queue
143
+ // specFileRetriesDeferred: false,
144
+ //
145
+ // Test reporter for stdout.
146
+ // The only one supported by default is 'dot'
147
+ // see also: https://webdriver.io/docs/dot-reporter
148
+ reporters: ['spec'],
149
+
150
+ // Options to be passed to Mocha.
151
+ // See the full list at http://mochajs.org/
152
+ mochaOpts: {
153
+ ui: 'bdd',
154
+ timeout: 60000
155
+ },
156
+
157
+ //
158
+ // =====
159
+ // Hooks
160
+ // =====
161
+ // WebdriverIO provides several hooks you can use to interfere with the test process in order to enhance
162
+ // it and to build services around it. You can either apply a single function or an array of
163
+ // methods to it. If one of them returns with a promise, WebdriverIO will wait until that promise got
164
+ // resolved to continue.
165
+ /**
166
+ * Gets executed once before all workers get launched.
167
+ * @param {object} config wdio configuration object
168
+ * @param {Array.<Object>} capabilities list of capabilities details
169
+ */
170
+ // onPrepare: function (config, capabilities) {
171
+ // },
172
+ /**
173
+ * Gets executed before a worker process is spawned and can be used to initialize specific service
174
+ * for that worker as well as modify runtime environments in an async fashion.
175
+ * @param {string} cid capability id (e.g 0-0)
176
+ * @param {object} caps object containing capabilities for session that will be spawn in the worker
177
+ * @param {object} specs specs to be run in the worker process
178
+ * @param {object} args object that will be merged with the main configuration once worker is initialized
179
+ * @param {object} execArgv list of string arguments passed to the worker process
180
+ */
181
+ // onWorkerStart: function (cid, caps, specs, args, execArgv) {
182
+ // },
183
+ /**
184
+ * Gets executed just after a worker process has exited.
185
+ * @param {string} cid capability id (e.g 0-0)
186
+ * @param {number} exitCode 0 - success, 1 - fail
187
+ * @param {object} specs specs to be run in the worker process
188
+ * @param {number} retries number of retries used
189
+ */
190
+ // onWorkerEnd: function (cid, exitCode, specs, retries) {
191
+ // },
192
+ /**
193
+ * Gets executed just before initialising the webdriver session and test framework. It allows you
194
+ * to manipulate configurations depending on the capability or spec.
195
+ * @param {object} config wdio configuration object
196
+ * @param {Array.<Object>} capabilities list of capabilities details
197
+ * @param {Array.<String>} specs List of spec file paths that are to be run
198
+ * @param {string} cid worker id (e.g. 0-0)
199
+ */
200
+ // beforeSession: function (config, capabilities, specs, cid) {
201
+ // },
202
+ /**
203
+ * Gets executed before test execution begins. At this point you can access to all global
204
+ * variables like `browser`. It is the perfect place to define custom commands.
205
+ * @param {Array.<Object>} capabilities list of capabilities details
206
+ * @param {Array.<String>} specs List of spec file paths that are to be run
207
+ * @param {object} browser instance of created browser/device session
208
+ */
209
+ // before: function (capabilities, specs) {
210
+ // },
211
+ /**
212
+ * Runs before a WebdriverIO command gets executed.
213
+ * @param {string} commandName hook command name
214
+ * @param {Array} args arguments that command would receive
215
+ */
216
+ // beforeCommand: function (commandName, args) {
217
+ // },
218
+ /**
219
+ * Hook that gets executed before the suite starts
220
+ * @param {object} suite suite details
221
+ */
222
+ // beforeSuite: function (suite) {
223
+ // },
224
+ /**
225
+ * Function to be executed before a test (in Mocha/Jasmine) starts.
226
+ */
227
+ // beforeTest: function (test, context) {
228
+ // },
229
+ /**
230
+ * Hook that gets executed _before_ a hook within the suite starts (e.g. runs before calling
231
+ * beforeEach in Mocha)
232
+ */
233
+ // beforeHook: function (test, context, hookName) {
234
+ // },
235
+ /**
236
+ * Hook that gets executed _after_ a hook within the suite starts (e.g. runs after calling
237
+ * afterEach in Mocha)
238
+ */
239
+ // afterHook: function (test, context, { error, result, duration, passed, retries }, hookName) {
240
+ // },
241
+ /**
242
+ * Function to be executed after a test (in Mocha/Jasmine only)
243
+ * @param {object} test test object
244
+ * @param {object} context scope object the test was executed with
245
+ * @param {Error} result.error error object in case the test fails, otherwise `undefined`
246
+ * @param {*} result.result return object of test function
247
+ * @param {number} result.duration duration of test
248
+ * @param {boolean} result.passed true if test has passed, otherwise false
249
+ * @param {object} result.retries information about spec related retries, e.g. `{ attempts: 0, limit: 0 }`
250
+ */
251
+ // afterTest: function(test, context, { error, result, duration, passed, retries }) {
252
+ // },
253
+
254
+
255
+ /**
256
+ * Hook that gets executed after the suite has ended
257
+ * @param {object} suite suite details
258
+ */
259
+ // afterSuite: function (suite) {
260
+ // },
261
+ /**
262
+ * Runs after a WebdriverIO command gets executed
263
+ * @param {string} commandName hook command name
264
+ * @param {Array} args arguments that command would receive
265
+ * @param {number} result 0 - command success, 1 - command error
266
+ * @param {object} error error object if any
267
+ */
268
+ // afterCommand: function (commandName, args, result, error) {
269
+ // },
270
+ /**
271
+ * Gets executed after all tests are done. You still have access to all global variables from
272
+ * the test.
273
+ * @param {number} result 0 - test pass, 1 - test fail
274
+ * @param {Array.<Object>} capabilities list of capabilities details
275
+ * @param {Array.<String>} specs List of spec file paths that ran
276
+ */
277
+ // after: function (result, capabilities, specs) {
278
+ // },
279
+ /**
280
+ * Gets executed right after terminating the webdriver session.
281
+ * @param {object} config wdio configuration object
282
+ * @param {Array.<Object>} capabilities list of capabilities details
283
+ * @param {Array.<String>} specs List of spec file paths that ran
284
+ */
285
+ // afterSession: function (config, capabilities, specs) {
286
+ // },
287
+ /**
288
+ * Gets executed after all workers got shut down and the process is about to exit. An error
289
+ * thrown in the onComplete hook will result in the test run failing.
290
+ * @param {object} exitCode 0 - success, 1 - fail
291
+ * @param {object} config wdio configuration object
292
+ * @param {Array.<Object>} capabilities list of capabilities details
293
+ * @param {<Object>} results object containing test results
294
+ */
295
+ // onComplete: function(exitCode, config, capabilities, results) {
296
+ // },
297
+ /**
298
+ * Gets executed when a refresh happens.
299
+ * @param {string} oldSessionId session ID of the old session
300
+ * @param {string} newSessionId session ID of the new session
301
+ */
302
+ // onReload: function(oldSessionId, newSessionId) {
303
+ // }
304
+ /**
305
+ * Hook that gets executed before a WebdriverIO assertion happens.
306
+ * @param {object} params information about the assertion to be executed
307
+ */
308
+ // beforeAssertion: function(params) {
309
+ // }
310
+ /**
311
+ * Hook that gets executed after a WebdriverIO assertion happened.
312
+ * @param {object} params information about the assertion that was executed, including its results
313
+ */
314
+ // afterAssertion: function(params) {
315
+ // }
316
+ }