runner-runtime 1.0.19 → 1.0.21
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/libs/utils.js +5 -5
- package/package.json +1 -1
package/libs/utils.js
CHANGED
|
@@ -440,15 +440,15 @@ const formatAutotestReportList = (eventResultList) => {
|
|
|
440
440
|
const list = []
|
|
441
441
|
_.forEach(eventResultList, (item) => {
|
|
442
442
|
list.push(_.assign(
|
|
443
|
+
_.pick(item?.response, ['timings', 'response_time', 'response_at', 'proxy', 'status', 'code', 'response_size']),
|
|
444
|
+
_.pick(item?.request, ['url', 'method', 'name', 'target_id', 'project_id']),
|
|
445
|
+
_.pick(item, ['type', 'event_id', 'test_id', 'iteration_id']),
|
|
443
446
|
{
|
|
444
447
|
'status': {
|
|
445
448
|
"assert": _.isEmpty(item?.status?.success_assert) ? "OK" : item?.status?.success_assert,
|
|
446
449
|
"http": item?.status?.http || "OK"
|
|
447
450
|
}
|
|
448
451
|
},
|
|
449
|
-
_.pick(item?.response, ['timings', 'response_time', 'response_at', 'proxy', 'status', 'code', 'response_size']),
|
|
450
|
-
_.pick(item?.request, ['url', 'method', 'name', 'target_id', 'project_id']),
|
|
451
|
-
_.pick(item, ['type', 'event_id', 'test_id', 'iteration_id']),
|
|
452
452
|
))
|
|
453
453
|
})
|
|
454
454
|
|
|
@@ -500,8 +500,8 @@ const formatAutotestReport = (startTimeAt, eventResultList) => {
|
|
|
500
500
|
}
|
|
501
501
|
})
|
|
502
502
|
|
|
503
|
-
report.http.success
|
|
504
|
-
report.assert.success
|
|
503
|
+
report.http.success = report.http.total - report.http.error;
|
|
504
|
+
report.assert.success = report.assert.total - report.assert.error;
|
|
505
505
|
report.avg_response_time = _.round(totalResponseTime / report.http.total, 2);
|
|
506
506
|
report.avg_response_size = _.round(totalResponseSize / report.http.total, 2);
|
|
507
507
|
report.total_response_time = totalResponseTime;
|