froth-webdriverio-framework 1.0.76 → 1.0.78
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 +5 -3
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -70,6 +70,7 @@ const commonconfig = {
|
|
|
70
70
|
*/
|
|
71
71
|
afterTest: function (test, context, { error, result, duration, passed, retries }) {
|
|
72
72
|
console.log(`Test '${test.title}' finished.`);
|
|
73
|
+
console.log('Test file name:', test.file);
|
|
73
74
|
// BUFFER.setItem("TOTAL_DURATION", Number(BUFFER.getItem("TOTAL_DURATION")) + duration)
|
|
74
75
|
console.log(`Duration: ${duration}ms`);
|
|
75
76
|
console.log(`Passed: ${passed}`);
|
|
@@ -95,10 +96,11 @@ const commonconfig = {
|
|
|
95
96
|
* @param {Array.<String>} specs List of spec file paths that ran
|
|
96
97
|
*/
|
|
97
98
|
after: async function (result, capabilities, specs) {
|
|
98
|
-
console.log('All tests are done.');
|
|
99
|
+
console.log('All tests are done.'+result);
|
|
99
100
|
BUFFER.setItem("RESULT_DATA", result);
|
|
101
|
+
console.log("result data :"+BUFFER.getItem("RESULT_DATA"))
|
|
100
102
|
const resultdetails = {}
|
|
101
|
-
resultdetails.excution_status = BUFFER.getItem("RESULT_DATA")
|
|
103
|
+
resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") == 0 ? 'PASSED' : 'FAILED'
|
|
102
104
|
console.log("Total Duration:" + BUFFER.getItem("TOTAL_DURATION"));
|
|
103
105
|
console.log("Results" + resultdetails.excution_status);
|
|
104
106
|
resultdetails.excution_time = await secondsToTime(BUFFER.getItem("TOTAL_DURATION"))
|
|
@@ -112,7 +114,7 @@ const commonconfig = {
|
|
|
112
114
|
// await getBSSessionDetails(process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, Buffer.from(process.env.BROWSERSTACK_ACCESS_KEY, 'base64').toString('utf-8'));
|
|
113
115
|
await getBSSessionDetails(process.env.BS_SESSION_TYPE, process.env.BROWSERSTACK_USERNAME, process.env.BROWSERSTACK_ACCESS_KEY);
|
|
114
116
|
const resultdetails = {}
|
|
115
|
-
resultdetails.excution_status = BUFFER.getItem("RESULT_DATA")
|
|
117
|
+
resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") == 0 ? 'PASSED' : 'FAILED'
|
|
116
118
|
console.log("Total Duration:" + BUFFER.getItem("TOTAL_DURATION"));
|
|
117
119
|
resultdetails.excution_time = await secondsToTime(BUFFER.getItem("TOTAL_DURATION"))
|
|
118
120
|
await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("LOGIN_TOKEN"), BUFFER.getItem("EXECUTION_ID"), resultdetails)
|