runner-runtime 1.0.18 → 1.0.20
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 +9 -8
- package/package.json +1 -1
package/libs/utils.js
CHANGED
|
@@ -439,15 +439,16 @@ const variableReplace = (str, variables, option) => {
|
|
|
439
439
|
const formatAutotestReportList = (eventResultList) => {
|
|
440
440
|
const list = []
|
|
441
441
|
_.forEach(eventResultList, (item) => {
|
|
442
|
-
list.push(_.assign(
|
|
443
|
-
'status'
|
|
444
|
-
|
|
445
|
-
"http": item?.status?.http || "OK"
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
_.pick(item?.request, ['timings', 'response_time', 'response_at', 'proxy', 'status', 'code', 'response_size']),
|
|
449
|
-
_.pick(item?.response, ['url', 'method', 'name', 'target_id', 'project_id']),
|
|
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']),
|
|
450
445
|
_.pick(item, ['type', 'event_id', 'test_id', 'iteration_id']),
|
|
446
|
+
{
|
|
447
|
+
'status': {
|
|
448
|
+
"assert": _.isEmpty(item?.status?.success_assert) ? "OK" : item?.status?.success_assert,
|
|
449
|
+
"http": item?.status?.http || "OK"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
451
452
|
))
|
|
452
453
|
})
|
|
453
454
|
|