runner-runtime 1.0.56 → 1.0.58

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 CHANGED
@@ -671,6 +671,8 @@ const convert2PostmanOptions = (request, option, variables) => {
671
671
  }
672
672
 
673
673
  const options = {
674
+ // abortOnFailure: false,
675
+ // abortOnError: false,
674
676
  timeout: {
675
677
  request: requestTimeout,
676
678
  script: 0,
@@ -2036,7 +2038,7 @@ const initRequestJson = (event, option) => {
2036
2038
  })
2037
2039
 
2038
2040
  _.set(requestJson, "initVarReplacedUrl", initVarReplacedUrl);
2039
- } else if (_.includes(['script'], event?.type)) { // 脚本、断言 todo... 断言需要做成可视化的
2041
+ } else if (_.includes(['script'], event?.type)) {
2040
2042
  _.set(requestJson, "request.pre_tasks", [
2041
2043
  {
2042
2044
  type: "customScript",
@@ -2044,7 +2046,7 @@ const initRequestJson = (event, option) => {
2044
2046
  data: event?.data?.content,
2045
2047
  },
2046
2048
  ]);
2047
- } else if (_.includes(['assert'], event?.type)) { // 脚本、断言 todo... 断言需要做成可视化的
2049
+ } else if (_.includes(['assert'], event?.type)) {
2048
2050
  _.set(requestJson, "name", "脚本断言");
2049
2051
  _.set(requestJson, "request.pre_tasks", [
2050
2052
  {
@@ -2215,7 +2217,7 @@ module.exports = (event, option, callback, eventRuntimeData, eventResultList) =>
2215
2217
  })
2216
2218
  }
2217
2219
  }
2218
- console.log(String(request?.url),111111)
2220
+
2219
2221
  const requestOptions = convert2EchoRequest(request, requestJson, postmanJSON, history);
2220
2222
  _.set(eventRuntimeData, [event?.event_id, "request"], requestOptions);
2221
2223
 
@@ -2348,7 +2350,8 @@ console.log(String(request?.url),111111)
2348
2350
  callback({
2349
2351
  action: 'request',
2350
2352
  data: _.assign(finalRequestResult, {
2351
- type: 'request'
2353
+ // type: 'request'
2354
+ type: event?.type
2352
2355
  })
2353
2356
  })
2354
2357
  }
package/libs/utils.js CHANGED
@@ -358,7 +358,7 @@ const formatAutotestReportList = (eventResultList) => {
358
358
  _.forEach(_.cloneDeep(eventResultList), (item) => {
359
359
  const type = item?.type;
360
360
 
361
- if (_.includes(['assert', 'assert_visual', 'api', 'sample', 'script'], type)) {
361
+ if (_.includes(['assert', 'assert_visual', 'api', 'sample', 'script', 'sql'], type)) {
362
362
  list.push(_.assign(
363
363
  _.pick(item?.response, ['timings', 'response_time', 'response_at', 'proxy', 'status', 'code', 'response_size']),
364
364
  _.pick(item?.request, ['url', 'method', 'name', 'target_id', 'project_id']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runner-runtime",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "runner-runtime.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "is-image": "^3.0.0",
30
30
  "is-svg": "^4.3.2",
31
31
  "json-bigint": "^1.0.0",
32
- "json-schema-faker-pro": "^0.5.18",
32
+ "json-schema-faker-pro": "^0.5.19",
33
33
  "json5": "^2.2.3",
34
34
  "jsonpath": "^1.1.1",
35
35
  "lodash": "^4.17.21",