froth-webdriverio-framework 1.0.70 → 1.0.72

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,6 +12,8 @@ async function getBSBuildDetails(sessiontype, bs_username, bs_pwd) {
12
12
 
13
13
  const url = `https://api.browserstack.com/${sessiontype}/builds.json?name=${process.env.BROWSERSTACK_BUILD_NAME}`;
14
14
 
15
+ console.log("url:" + url)
16
+
15
17
  const response = await fetch(url, {
16
18
  method: 'GET',
17
19
  headers: {
@@ -21,11 +23,11 @@ async function getBSBuildDetails(sessiontype, bs_username, bs_pwd) {
21
23
 
22
24
  if (response.ok) {
23
25
  const data = await response.json();
24
-
26
+ // console.log(data)
25
27
  // Accessing the public_url property
26
28
  hashed_id = data.automation_build.hashed_id;
27
29
 
28
- //return jsondata;
30
+ return hashed_id;
29
31
  } else if (response.status === 401) { //
30
32
  console.log("Unauthorized, token expired")
31
33
 
@@ -48,13 +50,13 @@ async function getBSBuildDetails(sessiontype, bs_username, bs_pwd) {
48
50
  async function getBSSessionDetails(sessiontype, bs_username, bs_pwd) {
49
51
  try {
50
52
  // const sessionId = sessionIdd;
51
- console.log(bs_username, bs_pwd)
52
53
  const username = bs_username;
53
54
  const accessKey = Buffer.from(bs_pwd, 'base64').toString('utf-8');
54
55
  const basicAuth = btoa(`${username}:${accessKey}`);
55
56
 
56
57
  const hash_id = await getBSBuildDetails(sessiontype, bs_username, accessKey)
57
58
  // const sessionid = BUFFER.getItem("SESSION_ID");
59
+ console.log("hash_id"+hash_id)
58
60
 
59
61
  // const url = `https://api.browserstack.com/${sessiontype}/sessions/${sessionid}.json`;
60
62
  const url = `https://api.browserstack.com/${sessiontype}/builds/${hash_id}/sessions.json`;
@@ -1,14 +1,10 @@
1
1
  const deepmerge = require('deepmerge')
2
2
  const commonconfig = require('./commonconfig');
3
- console.log("BROWSERSTACK_USERNAME"+process.env.BROWSERSTACK_USERNAME)
4
- console.log("BROWSERSTACK_ACCESS_KEY"+process.env.BROWSERSTACK_ACCESS_KEY)
5
- let bspass=Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8')
6
- console.log("BROWSERSTACK_ACCESS_KEY parsed"+bspass)
7
3
 
8
4
  const commonmobconfig = deepmerge.all([commonconfig, {
9
5
 
10
6
  user: process.env.BROWSERSTACK_USERNAME,
11
- key: bspass,
7
+ key: Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8'),
12
8
 
13
9
  logLevel: 'info',
14
10
  coloredLogs: true,
@@ -43,4 +39,4 @@ const commonmobconfig = deepmerge.all([commonconfig, {
43
39
 
44
40
  }]);
45
41
 
46
- module.exports = commonmobconfig;
42
+ module.exports = commonmobconfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",
@@ -25,10 +25,10 @@
25
25
  "appium"
26
26
  ],
27
27
  "dependencies": {
28
- "@wdio/appium-service": "^8.0.9",
29
- "@wdio/browserstack-service": "^7.16.4",
30
- "@wdio/cli": "^7.16.4",
31
- "@wdio/local-runner": "^7.16.4",
28
+ "@wdio/appium-service": "^8.36.1",
29
+ "@wdio/browserstack-service": "^8.36.1",
30
+ "@wdio/cli": "^8.36.1",
31
+ "@wdio/local-runner": "^8.36.1",
32
32
  "@wdio/mocha-framework": "^8.36.1",
33
33
  "@wdio/spec-reporter": "^8.36.1",
34
34
  "appium": "^2.5.4",
@@ -36,8 +36,6 @@
36
36
  "browserstack-local": "^1.5.5",
37
37
  "deepmerge": "^4.3.1",
38
38
  "form-data": "^4.0.0",
39
- "mysql": "^2.18.1",
40
- "mysql2": "^3.10.2",
41
39
  "node-fetch": "^3.3.2",
42
40
  "node-localstorage": "^3.0.5",
43
41
  "ts-node": "^10.9.2",