runner-runtime 1.0.31 → 1.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/events/api.js +10 -8
- package/package.json +1 -1
package/events/api.js
CHANGED
|
@@ -2316,15 +2316,17 @@ module.exports = (event, option, callback, eventRuntimeData, eventResultList) =>
|
|
|
2316
2316
|
iteration_id: _.get(eventRuntimeData, [event?.event_id, 'iteration_id'])
|
|
2317
2317
|
}, _.pick(requestJson, ['parent_id', 'project_id', 'test_id', 'target_id']));
|
|
2318
2318
|
|
|
2319
|
-
if (scene === 'auto_test'
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2319
|
+
if (scene === 'auto_test') {
|
|
2320
|
+
if(_.includes(['assert', 'assert_visual', 'api', 'sample','script'], event?.type)){
|
|
2321
|
+
eventResultList.push(_.assign(camelCaseToSnakeCase(_.get(_.cloneDeep(eventRuntimeData), event?.event_id)), _.pick(event, ['type', 'event_id', 'test_id', 'iteration_id'])));
|
|
2322
|
+
|
|
2323
|
+
resolve({
|
|
2324
|
+
action: 'request',
|
|
2325
|
+
data: _.assign(finalRequestResult, {
|
|
2326
|
+
type: 'request'
|
|
2327
|
+
})
|
|
2326
2328
|
})
|
|
2327
|
-
}
|
|
2329
|
+
}
|
|
2328
2330
|
} else {
|
|
2329
2331
|
resolve(finalRequestResult)
|
|
2330
2332
|
}
|