froth-webdriverio-framework 1.0.78 → 1.0.79
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.
- package/api/getsuiteDetails.js +18 -18
- package/package.json +1 -1
package/api/getsuiteDetails.js
CHANGED
|
@@ -56,25 +56,25 @@ async function getSuiteDetails(frothUrl, token, id) {
|
|
|
56
56
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
async function main() {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
// async function main() {
|
|
60
|
+
// try {
|
|
61
|
+
// const frothUrl = "devapi.frothtestops.com";
|
|
62
|
+
// const username = "subhra.subudhi@roboticodigital.com";
|
|
63
|
+
// const password = "V2VsY29tZUAxMjM=";
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
// const token = await getLoginToken(frothUrl, username, password);
|
|
66
|
+
// if (!token) {
|
|
67
|
+
// throw new Error('Login failed, no token obtained');
|
|
68
|
+
// }
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
70
|
+
// const id = 147;
|
|
71
|
+
// const data = await getSuiteDetails(frothUrl, token, id);
|
|
72
|
+
// console.log("Retrieved JSON Data:", data);
|
|
73
|
+
// console.log(data.automation_script_id[0].automation_script_id)
|
|
74
|
+
// } catch (error) {
|
|
75
|
+
// console.error('Error in main function:', error);
|
|
76
|
+
// }
|
|
77
|
+
// }
|
|
78
78
|
|
|
79
|
-
main();
|
|
79
|
+
// main();
|
|
80
80
|
module.exports = getSuiteDetails;
|