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.
- package/config/commonconfig.js +5 -10
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
/**
|