froth-webdriverio-framework 3.0.29 → 3.0.32
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 +11 -2
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -26,11 +26,14 @@ const commonconfig = {
|
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
beforeSession: async function (config, capabilities,
|
|
29
|
+
beforeSession: async function (config, capabilities,specs ) {
|
|
30
30
|
console.log('========= This is the beforesession hook');
|
|
31
31
|
// Perform any setup or pre-test actions here
|
|
32
32
|
// console.log("Capabilities:", capabilities);
|
|
33
|
-
console.log("Specs:", specs.
|
|
33
|
+
console.log("Specs:", specs.length);
|
|
34
|
+
const specdat=specs
|
|
35
|
+
console.log("specdat:", specdat);
|
|
36
|
+
console.log("length:", specdat.length);
|
|
34
37
|
// console.log("Config:", config);
|
|
35
38
|
},
|
|
36
39
|
/**
|
|
@@ -141,6 +144,7 @@ const commonconfig = {
|
|
|
141
144
|
// Perform any cleanup or post-test actions here
|
|
142
145
|
console.log("Capabilities:", capabilities);
|
|
143
146
|
console.log("Specs:", specs);
|
|
147
|
+
const specs=specs
|
|
144
148
|
console.log("Config:", config);
|
|
145
149
|
|
|
146
150
|
endtime = new Date().getTime();
|
|
@@ -157,13 +161,18 @@ const commonconfig = {
|
|
|
157
161
|
resultdetails.excution_time = BUFFER.getItem("FROTH_TOTAL_DURATION") === 0 ? await convertTimetoHHMMSS(totalDuration) : await secondsToTime(BUFFER.getItem("FROTH_TOTAL_DURATION"))
|
|
158
162
|
await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
|
|
159
163
|
BUFFER.clear();
|
|
164
|
+
|
|
165
|
+
|
|
160
166
|
// Perform any cleanup or post-test actions here
|
|
161
167
|
},
|
|
162
168
|
|
|
163
169
|
onComplete: async function (exitCode, config, capabilities, results) {
|
|
170
|
+
|
|
164
171
|
console.log('========= This is the onComplete hook', results);
|
|
172
|
+
|
|
165
173
|
console.log('--- Test Results Summary ---');
|
|
166
174
|
console.log('----------------------------');
|
|
175
|
+
|
|
167
176
|
console.log('Total Tests:', results.total);
|
|
168
177
|
console.log('Passed:', results.passed);
|
|
169
178
|
console.log('Failed:', results.failed);
|