froth-webdriverio-framework 0.1.43 → 0.1.44

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.
@@ -21,18 +21,13 @@ const commonconfig = {
21
21
  process.env.BUFFER = null;
22
22
  console.log("process.env.BUFFER in before " + process.env.BUFFER);
23
23
  const jsonobject = await getDataById(process.env.organisation_url, process.env.testdata_id);
24
- // You can perform any setup tasks here
25
- global.myGlobalVariable = jsonobject;
26
-
27
- console.log("global variable: " + JSON.stringify(global.myGlobalVariable));
28
- if (global.myGlobalVariable) {
29
- console.log("global variable2: " + global.myGlobalVariable.abc);
30
- } else {
31
- console.log("Global variable is not set.");
24
+ if (jsonobject == null) {
25
+ console.log("Test data is not available");
26
+ }
27
+ else {
28
+ process.env.BUFFER = JSON.stringify(jsonobject);
32
29
  }
33
30
 
34
-
35
- // If you need to perform asynchronous actions, use the 'beforeSession' hook instead
36
31
  },
37
32
 
38
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "readme": "WendriverIO Integration with [BrowserStack]",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",