froth-webdriverio-framework 0.1.55 → 0.1.56
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/config/commonconfig.js +4 -4
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -3,7 +3,7 @@ const exeDetails = require("../api/getexecutionDetails")
|
|
|
3
3
|
const getLoginToken = require("../api/loginapi");
|
|
4
4
|
const getSuiteDetails = require("../api/getsuiteDetails");
|
|
5
5
|
const { LocalStorage } = require('node-localstorage');
|
|
6
|
-
global.localStorage = new LocalStorage('./
|
|
6
|
+
global.localStorage = new LocalStorage('./storage');
|
|
7
7
|
|
|
8
8
|
// Description: This file contains the common configuration for the webdriverio framework.
|
|
9
9
|
const commonconfig = {
|
|
@@ -68,7 +68,6 @@ const commonconfig = {
|
|
|
68
68
|
*/
|
|
69
69
|
beforeTest: function (test, context) {
|
|
70
70
|
console.log("Test Name:", test.title);
|
|
71
|
-
console.log("Context Details:", context.title);
|
|
72
71
|
console.log("File Name:", test.file);
|
|
73
72
|
|
|
74
73
|
},
|
|
@@ -119,12 +118,13 @@ const commonconfig = {
|
|
|
119
118
|
console.log('All tests are done.');
|
|
120
119
|
const resultdata = result === 0 ? 'Pass' : 'Fail';
|
|
121
120
|
console.log(`Result: ${resultdata}`);
|
|
122
|
-
|
|
121
|
+
|
|
123
122
|
const resultdetails = {}
|
|
124
123
|
resultdetails.excution_status = resultdata === 'Pass' ? 'PASSED' : 'FAILED'
|
|
125
124
|
resultdetails.excution_time = convertMillisecondsToTime(localStorage.getItem("TOTAL_DURATION"))
|
|
126
125
|
exeDetails.updateExecuitonDetails(localStorage.getItem("organisation_url"), localStorage.getItem("LOGIN_TOKEN"), localStorage.getItem("EXECUTION_ID"), resultdetails)
|
|
127
|
-
|
|
126
|
+
localStorage.clear();
|
|
127
|
+
console.log('Local storage has been cleared.');
|
|
128
128
|
// console.log('Capabilities:');
|
|
129
129
|
// console.log(capabilities);
|
|
130
130
|
// console.log('Specs:');
|