froth-webdriverio-framework 3.0.28 → 3.0.31
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 +19 -4
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -26,12 +26,18 @@ const commonconfig = {
|
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
beforeSession: async function (config, capabilities,
|
|
29
|
+
beforeSession: async function (config, capabilities,
|
|
30
|
+
|
|
31
|
+
) {
|
|
30
32
|
console.log('========= This is the beforesession hook');
|
|
31
33
|
// Perform any setup or pre-test actions here
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
// console.log("Capabilities:", capabilities);
|
|
35
|
+
console.log("Specs:", specs);
|
|
36
|
+
const specsdata = specs
|
|
37
|
+
console.log("====== specdata is ", specsdata)
|
|
38
|
+
console.log("====== length of specs", specsdata.length)
|
|
39
|
+
console.log("Specs:", specs.length);
|
|
40
|
+
// console.log("Config:", config);
|
|
35
41
|
},
|
|
36
42
|
/**
|
|
37
43
|
* Gets executed before the suite starts (in Mocha/Jasmine only).
|
|
@@ -139,6 +145,10 @@ const commonconfig = {
|
|
|
139
145
|
afterSession: async function (config, capabilities, specs) {
|
|
140
146
|
console.log('========= This is the aftersession hook');
|
|
141
147
|
// Perform any cleanup or post-test actions here
|
|
148
|
+
console.log("Capabilities:", capabilities);
|
|
149
|
+
console.log("Specs:", specs);
|
|
150
|
+
const specsdata = specs
|
|
151
|
+
console.log("Config:", config);
|
|
142
152
|
|
|
143
153
|
endtime = new Date().getTime();
|
|
144
154
|
let totalDuration = endtime - starttime;
|
|
@@ -154,13 +164,18 @@ const commonconfig = {
|
|
|
154
164
|
resultdetails.excution_time = BUFFER.getItem("FROTH_TOTAL_DURATION") === 0 ? await convertTimetoHHMMSS(totalDuration) : await secondsToTime(BUFFER.getItem("FROTH_TOTAL_DURATION"))
|
|
155
165
|
await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
|
|
156
166
|
BUFFER.clear();
|
|
167
|
+
|
|
168
|
+
|
|
157
169
|
// Perform any cleanup or post-test actions here
|
|
158
170
|
},
|
|
159
171
|
|
|
160
172
|
onComplete: async function (exitCode, config, capabilities, results) {
|
|
173
|
+
|
|
161
174
|
console.log('========= This is the onComplete hook', results);
|
|
175
|
+
|
|
162
176
|
console.log('--- Test Results Summary ---');
|
|
163
177
|
console.log('----------------------------');
|
|
178
|
+
|
|
164
179
|
console.log('Total Tests:', results.total);
|
|
165
180
|
console.log('Passed:', results.passed);
|
|
166
181
|
console.log('Failed:', results.failed);
|