froth-webdriverio-framework 7.0.22 → 7.0.24

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.
@@ -3,10 +3,10 @@ async function getBSBuildDetails(sessionType, bsUsername, bsPassword) {
3
3
  console.log(`Session type: ${sessionType}`);
4
4
 
5
5
  const basicAuth = btoa(`${bsUsername}:${bsPassword}`);
6
- let buildName = sessionType === 'app-automate'
7
- ? `Mobile_Build-${process.env.FROTH_TESTOPS_BUILD_NAME.trim()}`
8
- : `Web_Build-${process.env.FROTH_TESTOPS_BUILD_NAME.trim()}`;
9
- buildName=buildName.trim().replaceAll(" ","");
6
+ const buildName = sessionType === 'app-automate'
7
+ ? `Mobile_Build-${process.env.FROTH_TESTOPS_BUILD_NAME}`
8
+ : `Web_Build-${process.env.FROTH_TESTOPS_BUILD_NAME}`;
9
+
10
10
  console.log(`BrowserStack build name: ${buildName}`);
11
11
 
12
12
  const url = `https://api.browserstack.com/${sessionType}/builds.json?name=${buildName}`;
@@ -51,7 +51,7 @@ async function getExecuitonDetails(frothUrl, token, id) {
51
51
  let data = await handleResponse(response, 'getExecuitonDetails');
52
52
  // let responseData = await response.json()
53
53
 
54
- data = await aes.decrpytData(data.data)
54
+ // data = await aes.decrpytData(data.data)
55
55
  // console.log("after decrypting",data)
56
56
 
57
57
  data = JSON.parse(data)
@@ -154,7 +154,10 @@ const commonHooks = {
154
154
  const media = JSON.parse(process.env.MEDIA_FILES);
155
155
  console.log('Total items:', media.length);
156
156
  if (media.length > 0)
157
+ {
158
+ bsOpts.uploadMedia=JSON.parse(process.env.MEDIA_FILES)
157
159
  bsOpts['browserstack.uploadMedia'] = JSON.parse(process.env.MEDIA_FILES);
160
+ }
158
161
  } catch {
159
162
  console.warn('⚠️ MEDIA_FILES is not valid JSON');
160
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "7.0.22",
3
+ "version": "7.0.24",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",