froth-webdriverio-framework 1.0.52 → 1.0.54

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.
@@ -59,12 +59,18 @@ async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
59
59
  const url = `https://${frothUrl}/api/test-execution-update/${id}/`;
60
60
  const formData = new FormData();
61
61
  try {
62
+ console.log("URL" + url)
62
63
  console.log("resultdetails" + JSON.stringify(resultdetails))
63
-
64
- if (resultdetails.excution_status != null)
64
+ console.log("resultdetails" + token)
65
+
66
+ if (resultdetails != null) {
67
+ console.log("resultdetails" + resultdetails.excution_status)
65
68
  formData.append('excution_status', resultdetails.excution_status);
66
- if (resultdetails.excution_time != null)
69
+ }
70
+ if (resultdetails.excution_time != null) {
71
+ console.log("excution_time" + resultdetails.excution_time)
67
72
  formData.append('excution_time', resultdetails.excution_time);
73
+ }
68
74
  formData.append('id', BUFFER.getItem("EXECUTION_ID"))
69
75
  formData.append('report_url', BUFFER.getItem("REPORT_URL"))
70
76
 
@@ -79,7 +85,7 @@ async function updateExecuitonDetails(frothUrl, token, id, resultdetails) {
79
85
 
80
86
  if (response.ok) {
81
87
  const data = await response.json();
82
- console.log(data)
88
+ console.log("data is :"+data)
83
89
 
84
90
  } else if (response.status === 401) { // Unauthorized, token expired
85
91
  // Call login function to obtain a new token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",