froth-webdriverio-framework 0.1.39 → 0.1.40

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.
@@ -7,8 +7,8 @@ const androidConfig = deepmerge.all([commonmobileconfig,{
7
7
  'browserstack',
8
8
  {
9
9
  testObservability: true,
10
- buildName: "ANDROID",
11
- buildIdentifier: 'BUILD',
10
+ buildIdentifier: process.env.BROWSERSTACK_BUILD_IDENTIFIER, // Optional and unique for each build
11
+ buildName: "ANDROID BUILD 1",
12
12
  browserstackLocal: true,
13
13
  opts: { forcelocal: false, localIdentifier: "webdriverio-appium" },
14
14
  app : process.env.BROWSERSTACK_APP_PATH || 'bs://a224145c09eb22e67c21ef65b29d32ae7aa78bb0'
@@ -2,14 +2,20 @@ const getDataById = require("../api/readTestdata");
2
2
  // Description: This file contains the common configuration for the webdriverio framework.
3
3
  const commonconfig = {
4
4
 
5
+ before: function (capabilities, specs) {
6
+ // Code to run before the test suite starts
7
+ console.log('Starting test suite IN EBFORE HOOK ...');
8
+ // Initialize variables, configure environment, etc.
9
+ },
10
+
5
11
  /**
6
12
  * Gets executed once before all workers get launched.
7
13
  * @param {Object} config wdio configuration object
8
14
  * @param {Array.<Object>} capabilities list of capabilities details
9
15
  */
10
- beforeSession: async function (config, capabilities,specs) {
16
+ onPrepare: function (capabilities, specs) {
11
17
  // This code runs before the test suite starts
12
- console.log('Preparing for tests...');
18
+ console.log('Preparing for tests... IN ONPREPARE HOOK');
13
19
  console.log("organisation url" + process.env.organisation_url);
14
20
  console.log("test data id" + process.env.testdata_id);
15
21
  process.env.BUFFER = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "readme": "WendriverIO Integration with [BrowserStack]",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",