froth-webdriverio-framework 1.0.46 → 1.0.47

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.
@@ -12,14 +12,13 @@ const commonconfig = {
12
12
  onPrepare: async function (capabilities, specs) {
13
13
  // This code runs before the test suite starts
14
14
  // console.log("organisation url" + process.env.ORGANISATION_DOMAIN_URL);
15
-
15
+ BUFFER.clear();
16
16
  await setAllDetails.setEnvVariables();
17
17
  await setAllDetails.setLoginToken();
18
18
  await setAllDetails.setExecutionDetails();
19
19
  // await setAllDetails.setIntegrationsDetails();
20
20
  await setAllDetails.setSuiteDetails();
21
21
  await setAllDetails.setTestDataDetails();
22
- // console.log("ALL JSON DATA:" + JSON.stringify(BUFFER));
23
22
  console.log("ALL JSON DATA in env variable :" + JSON.stringify(process.env));
24
23
  },
25
24
 
@@ -31,8 +30,8 @@ const commonconfig = {
31
30
  beforeSuite: function (suite) {
32
31
  try {
33
32
  console.log("Running suite:", suite.title);
34
- console.log("Reading test data from the API");
35
33
 
34
+
36
35
  } catch (e) {
37
36
  console.log("Error in beforeSuite:", e);
38
37
  }
@@ -46,12 +45,12 @@ const commonconfig = {
46
45
  beforeTest: function (test, context) {
47
46
  console.log("Test Name:", test.title);
48
47
  console.log("File Name:", test.file);
49
-
48
+
50
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
51
  const resultdetails = {};
52
52
  exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("EXECUTION_ID"), resultdetails)
53
53
 
54
-
55
54
  },
56
55
 
57
56
  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.46",
3
+ "version": "1.0.47",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",