froth-webdriverio-framework 3.0.107 → 3.0.109

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.
@@ -100,7 +100,7 @@ async function getExecuitonScriptDetails(frothUrl, token, execution_id, script_i
100
100
  }
101
101
 
102
102
  async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
103
- if (id != 0) {
103
+ // if (id != 0) {
104
104
 
105
105
 
106
106
  const url = `${frothUrl}/api/test-execution-update/${id}/`;
@@ -148,9 +148,9 @@ async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
148
148
  console.error('Error fetching data:', error);
149
149
 
150
150
  }
151
- } else {
152
- console.error('Error fetching data: Invalid ID');
153
- }
151
+ // } else {
152
+ // console.error('Error fetching data: Invalid ID');
153
+ // }
154
154
 
155
155
  }
156
156
 
@@ -54,7 +54,7 @@ function main() {
54
54
  iat: currentTimestamp, // Issued at
55
55
  exp: currentTimestamp + 200, // Expiry time: 30 seconds from issuance
56
56
  user_agent: {
57
- id: "janga.reddy@ytl.com"
57
+ id: "kartikaypriya.p@ytlcomms.my"
58
58
  }
59
59
  };
60
60
 
@@ -44,14 +44,17 @@ const commonconfig = {
44
44
 
45
45
  if (process.env.PLATFORM === 'browserstack') {
46
46
  /// console.log("capabilities:", capabilities);
47
- // capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
48
- capabilities.app = process.env.BROWSERSTACK_APP_PATH;
49
47
  capabilities.browserstackLocal = process.env.BROWSERSTACK_LOCAL;
50
- if (process.env.MEDIA_FILES){
48
+ // capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
49
+ if (process.env.BROWSERSTACK_APP_PATH)
50
+ capabilities.app = process.env.BROWSERSTACK_APP_PATH;
51
+
52
+
53
+ if (process.env.MEDIA_FILES) {
51
54
  console.log("Media Files:", JSON.parse(process.env.MEDIA_FILES));
52
55
  console.log("Size of Media Files:", process.env.MEDIA_FILES.length);
53
56
  if (process.env.MEDIA_FILES.length > 0)
54
- capabilities['browserstack.uploadMedia'] = JSON.parse(process.env.MEDIA_FILES);
57
+ capabilities['browserstack.uploadMedia'] = JSON.parse(process.env.MEDIA_FILES);
55
58
  }
56
59
 
57
60
  console.log(`Running tests on after app,bslocal,mediafiles: ${JSON.stringify(capabilities)}`);
@@ -74,7 +77,7 @@ const commonconfig = {
74
77
  await getBSSessionDetails(process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, process.env.BROWSERSTACK_ACCESS_KEY);
75
78
 
76
79
  const resultdetails = {};
77
- exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
80
+ await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
78
81
 
79
82
  } catch (e) {
80
83
  console.log("Error in beforeSuite:", e);
@@ -4,7 +4,6 @@ const exeDetails = require("../froth_api_calls/getexecutionDetails")
4
4
  const getSuiteDetails = require("../froth_api_calls/getsuiteDetails");
5
5
  const getDataById = require("../froth_api_calls/readTestdata");
6
6
 
7
-
8
7
  async function generateBuildNumber() {
9
8
  try {
10
9
  const now = new Date();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.107",
3
+ "version": "3.0.109",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",