froth-webdriverio-framework 2.0.44 → 2.0.46
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/api.conf.js +3 -0
- package/config/commonconfig.js +2 -2
- package/package.json +1 -1
package/config/api.conf.js
CHANGED
|
@@ -11,6 +11,9 @@ const apiconfig = deepmerge.all([commonmobileconfig, {
|
|
|
11
11
|
maxInstances: 5,
|
|
12
12
|
browserName: 'chrome',
|
|
13
13
|
acceptInsecureCerts: true,
|
|
14
|
+
'goog:chromeOptions': {
|
|
15
|
+
args: ['--headless', '--no-sandbox', '--disable-dev-shm-usage'],
|
|
16
|
+
},
|
|
14
17
|
}],
|
|
15
18
|
runner: 'local',
|
|
16
19
|
|
package/config/commonconfig.js
CHANGED
|
@@ -138,7 +138,7 @@ const commonconfig = {
|
|
|
138
138
|
const resultdetails = {}
|
|
139
139
|
resultdetails.excution_status = BUFFER.getItem("RESULT_DATA") == 0 ? 'PASSED' : 'FAILED'
|
|
140
140
|
console.log("Total Duration:" + BUFFER.getItem("FROTH_TOTAL_DURATION") === 0 ? totalDuration:BUFFER.getItem("FROTH_TOTAL_DURATION"));
|
|
141
|
-
resultdetails.excution_time = await secondsToTime(BUFFER.getItem("FROTH_TOTAL_DURATION"))
|
|
141
|
+
resultdetails.excution_time = await secondsToTime(BUFFER.getItem("FROTH_TOTAL_DURATION")=== 0 ? totalDuration:BUFFER.getItem("FROTH_TOTAL_DURATION"))
|
|
142
142
|
await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
|
|
143
143
|
BUFFER.clear();
|
|
144
144
|
// Perform any cleanup or post-test actions here
|
|
@@ -155,7 +155,7 @@ async function secondsToTime(secs) {
|
|
|
155
155
|
if (hours < 10) hours = '0' + hours;
|
|
156
156
|
if (minutes < 10) minutes = '0' + minutes;
|
|
157
157
|
if (seconds < 10) seconds = '0' + seconds;
|
|
158
|
-
|
|
158
|
+
console.log("Time:" + hours + ':' + minutes + ':' + seconds);
|
|
159
159
|
return hours + ':' + minutes + ':' + seconds;
|
|
160
160
|
}
|
|
161
161
|
|