froth-webdriverio-framework 1.0.47 → 1.0.48

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.
@@ -27,11 +27,14 @@ const commonconfig = {
27
27
  * Gets executed before the suite starts (in Mocha/Jasmine only).
28
28
  * @param {object} suite suite details
29
29
  */
30
- beforeSuite: function (suite) {
30
+ beforeSuite: async function (suite) {
31
31
  try {
32
32
  console.log("Running suite:", suite.title);
33
-
34
-
33
+ await getBSSessionDetails( process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8'));
34
+ console.log("ALL JSON DATA IN BUFFER:" + JSON.stringify(BUFFER));
35
+ const resultdetails = {};
36
+ exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("EXECUTION_ID"), resultdetails)
37
+
35
38
  } catch (e) {
36
39
  console.log("Error in beforeSuite:", e);
37
40
  }
@@ -46,11 +49,6 @@ const commonconfig = {
46
49
  console.log("Test Name:", test.title);
47
50
  console.log("File Name:", test.file);
48
51
 
49
- getBSSessionDetails( process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8'));
50
- console.log("ALL JSON DATA IN BUFFER:" + JSON.stringify(BUFFER));
51
- const resultdetails = {};
52
- exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("EXECUTION_ID"), resultdetails)
53
-
54
52
  },
55
53
 
56
54
  afterStep: function (test, context, { error, result, duration, passed, retries }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",