froth-webdriverio-framework 1.0.85 → 1.0.86
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.
|
@@ -55,7 +55,7 @@ async function getExecuitonDetails(frothUrl, token, id) {
|
|
|
55
55
|
|
|
56
56
|
async function getExecuitonScriptDetails(frothUrl, token, execution_id, script_id) {
|
|
57
57
|
let id;
|
|
58
|
-
const url = `https://${frothUrl}/api/execution-script-mapping/?execution_id=${execution_id}&automation_script_id=${script_id}
|
|
58
|
+
const url = `https://${frothUrl}/api/execution-script-mapping/?execution_id=${execution_id}&automation_script_id=${script_id}`;
|
|
59
59
|
|
|
60
60
|
try {
|
|
61
61
|
console.log("URL: " + url)
|
|
@@ -70,9 +70,9 @@ async function getExecuitonScriptDetails(frothUrl, token, execution_id, script_i
|
|
|
70
70
|
});
|
|
71
71
|
if (response.ok) {
|
|
72
72
|
const data = await response.json();
|
|
73
|
-
|
|
73
|
+
console.log(data)
|
|
74
74
|
id = data[0].id;
|
|
75
|
-
|
|
75
|
+
console.log("ID is :" + id)
|
|
76
76
|
// console.log("json data :" + JSON.stringify(jsondata));
|
|
77
77
|
|
|
78
78
|
return id;
|
|
@@ -154,7 +154,7 @@ async function updateScriptExecutionStatus(frothUrl, token, scriptid, status) {
|
|
|
154
154
|
|
|
155
155
|
if (scriptid != 0) {
|
|
156
156
|
try {
|
|
157
|
-
id = await getExecuitonScriptDetails(frothUrl, token, BUFFER.getItem("EXECUTION_ID"), scriptid)
|
|
157
|
+
const id = await getExecuitonScriptDetails(frothUrl, token, BUFFER.getItem("EXECUTION_ID"), scriptid)
|
|
158
158
|
const url = `https://${frothUrl}/api/script-status-percentage/${id}/`;
|
|
159
159
|
const formData = new FormData();
|
|
160
160
|
|
|
@@ -220,7 +220,7 @@ async function updateScriptExecutionStatus(frothUrl, token, scriptid, status) {
|
|
|
220
220
|
// const duration = "31355ms"
|
|
221
221
|
// resultdetails.excution_status = resultdata === 'Pass' ? 'PASSED' : 'FAILED'
|
|
222
222
|
// //resultdetails.excution_time = convertMillisecondsToTime(duration)
|
|
223
|
-
// await
|
|
223
|
+
// await getExecuitonScriptDetails(frothUrl, token, 449, 130);
|
|
224
224
|
// } catch (error) {
|
|
225
225
|
// console.error('Error in main function:', error);
|
|
226
226
|
// }
|