apipost-cli 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/bin/template.js +8 -8
  2. package/package.json +3 -3
package/bin/template.js CHANGED
@@ -424,7 +424,7 @@ const RENDER_TEST_REPORT_HTML_STR = (data = {}) => {
424
424
  </div>
425
425
  </div>
426
426
  <div class="item-info">
427
- <span>请求状况:{{(item?.http_error === 1 || item.assert_error === 1) ? '失败' : '成功'}}</span>
427
+ <span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
428
428
  <span>状态码:{{item?.response?.data?.response?.code}}</span>
429
429
  <span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
430
430
  <span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
@@ -463,9 +463,9 @@ const RENDER_TEST_REPORT_HTML_STR = (data = {}) => {
463
463
  {{each value.logList item key}}
464
464
  <div data-text="{{key}}" id="{{key}}" class="test-event-item">
465
465
  <div class="panel">
466
- {{if item.http_error === -1}}
466
+ {{if item.http_error === -1 && && item.assert_error === -1}}
467
467
  <img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
468
- {{/if}} {{if item.http_error === 1}}
468
+ {{/if}} {{if item.http_error === 1 || item.assert_error === 1}}
469
469
  <img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
470
470
  {{/if}}
471
471
 
@@ -477,7 +477,7 @@ const RENDER_TEST_REPORT_HTML_STR = (data = {}) => {
477
477
  </div>
478
478
  </div>
479
479
  <div class="item-info">
480
- <span>请求状况:{{(item?.http_error === 1 || item.assert_error === 1) ? '失败' : '成功'}}</span>
480
+ <span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
481
481
  <span>状态码:{{item?.response?.data?.response?.code}}</span>
482
482
  <span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
483
483
  <span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
@@ -538,7 +538,7 @@ const RENDER_TEST_REPORT_HTML_STR = (data = {}) => {
538
538
  </div>
539
539
  </div>
540
540
  <div class="item-info">
541
- <span>请求状况:{{(item?.http_error === 1 || item.assert_error === 1) ? '失败' : '成功'}}</span>
541
+ <span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
542
542
  <span>状态码:{{item?.response?.data?.response?.code}}</span>
543
543
  <span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
544
544
  <span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
@@ -577,9 +577,9 @@ const RENDER_TEST_REPORT_HTML_STR = (data = {}) => {
577
577
  {{each value.logList.filter(item => item.test_id === child.test_id) item key}}
578
578
  <div data-text="{{key}}" id="{{key}}" class="test-event-item">
579
579
  <div class="panel">
580
- {{if item.http_error === -1}}
580
+ {{if item.http_error === -1 && item.assert_error === -1}}
581
581
  <img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
582
- {{/if}} {{if item.http_error === 1}}
582
+ {{/if}} {{if item.http_error === 1 || item.assert_error === 1}}
583
583
  <img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
584
584
  {{/if}}
585
585
 
@@ -591,7 +591,7 @@ const RENDER_TEST_REPORT_HTML_STR = (data = {}) => {
591
591
  </div>
592
592
  </div>
593
593
  <div class="item-info">
594
- <span>请求状况:{{(item?.http_error === 1 || item.assert_error === 1) ? '失败' : '成功'}}</span>
594
+ <span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
595
595
  <span>状态码:{{item?.response?.data?.response?.code}}</span>
596
596
  <span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
597
597
  <span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apipost-cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Apipost 命令行运行工具",
5
5
  "main": "bin/cli.js",
6
6
  "scripts": {
@@ -13,8 +13,8 @@
13
13
  "author": "Apipost Team",
14
14
  "license": "UNLICENSED",
15
15
  "dependencies": {
16
- "apipost-inside-tools": "^0.1.54",
17
- "apipost-runtime": "^1.1.100",
16
+ "apipost-inside-tools": "^0.1.69",
17
+ "apipost-runtime": "^1.1.126",
18
18
  "cli-progress": "^3.12.0",
19
19
  "cli-table3": "^0.6.3",
20
20
  "colors": "^1.4.0",