froth-webdriverio-framework 1.0.74 → 1.0.76

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.
@@ -25,7 +25,7 @@ async function getBSBuildDetails(sessiontype, bs_username, bs_pwd) {
25
25
  const data = await response.json();
26
26
  console.log("session build_data:"+JSON.stringify(data))
27
27
  // Accessing the public_url property
28
- hashed_id = data.automation_build.hashed_id;
28
+ hashed_id = data[0].automation_build.hashed_id;
29
29
 
30
30
  return hashed_id;
31
31
  } else if (response.status === 401) { //
@@ -72,8 +72,8 @@ async function getBSSessionDetails(sessiontype, bs_username, bs_pwd) {
72
72
  const data = await response.json();
73
73
 
74
74
  // Accessing the public_url property
75
- const publicUrl = data.automation_session.public_url;
76
- const duration = data.automation_session.duration;
75
+ const publicUrl = data[0].automation_session.public_url;
76
+ const duration = data[0].automation_session.duration;
77
77
  BUFFER.setItem("REPORT_URL", publicUrl)
78
78
  BUFFER.setItem("TOTAL_DURATION", duration)
79
79
 
@@ -59,8 +59,6 @@ async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
59
59
  const formData = new FormData();
60
60
  try {
61
61
  console.log("URL" + url)
62
- console.log("resultdetails" + JSON.stringify(resultdetails))
63
-
64
62
 
65
63
  if (resultdetails.excution_status != null) {
66
64
  formData.append('excution_status', resultdetails.excution_status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",