From 6204c6b8cd832ffdc65b85b6b9d6df505c486137 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 7 Dec 2022 10:46:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE=E5=A4=9A=E4=B8=AAcookie?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020689 --user=赵勇 【接口测试】github#20467,环境配置里面的请求头Cookie和单个接口里面请求头冲突 https://www.tapd.cn/55049933/s/1313765 --- .../report/components/ResponseText.vue | 2 +- .../components/esb/EsbResponseResult.vue | 2 +- .../mock/Components/MockResponseParam.vue | 2 +- .../components/response/ResponseResult.vue | 2 +- .../report/detail/api/ResponseResult.vue | 189 ++++++++++++++---- 5 files changed, 151 insertions(+), 46 deletions(-) diff --git a/api-test/frontend/src/business/automation/report/components/ResponseText.vue b/api-test/frontend/src/business/automation/report/components/ResponseText.vue index c6ebf87173..6dde1e752b 100644 --- a/api-test/frontend/src/business/automation/report/components/ResponseText.vue +++ b/api-test/frontend/src/business/automation/report/components/ResponseText.vue @@ -40,7 +40,7 @@
{{ request.headers }}
- Cookies : + Cookie :
{{ request.cookies }}
diff --git a/api-test/frontend/src/business/definition/components/esb/EsbResponseResult.vue b/api-test/frontend/src/business/definition/components/esb/EsbResponseResult.vue index 22cff9715f..d603391622 100644 --- a/api-test/frontend/src/business/definition/components/esb/EsbResponseResult.vue +++ b/api-test/frontend/src/business/definition/components/esb/EsbResponseResult.vue @@ -214,7 +214,7 @@ export default { ':\n' + this.response.headers + '\n' + - 'Cookies :\n' + + 'Cookie :' + this.response.cookies + '\n' + 'Body:' + diff --git a/api-test/frontend/src/business/definition/components/mock/Components/MockResponseParam.vue b/api-test/frontend/src/business/definition/components/mock/Components/MockResponseParam.vue index 8ad92e906c..326cff89a1 100644 --- a/api-test/frontend/src/business/definition/components/mock/Components/MockResponseParam.vue +++ b/api-test/frontend/src/business/definition/components/mock/Components/MockResponseParam.vue @@ -234,7 +234,7 @@ export default { ':\n' + this.response.headers + '\n' + - 'Cookies :\n' + + 'Cookie :' + this.response.cookies + '\n' + 'Body:' + diff --git a/api-test/frontend/src/business/definition/components/response/ResponseResult.vue b/api-test/frontend/src/business/definition/components/response/ResponseResult.vue index fbe3eb5b38..7320ce1a3e 100644 --- a/api-test/frontend/src/business/definition/components/response/ResponseResult.vue +++ b/api-test/frontend/src/business/definition/components/response/ResponseResult.vue @@ -166,7 +166,7 @@ export default { } if (this.response.cookies) { - this.reqMessages += 'Cookies :\n' + this.response.cookies + '\n'; + this.reqMessages += 'Cookie :' + this.response.cookies + '\n'; } this.reqMessages += 'Body:' + '\n' + this.response.body; } diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue index 02ae536328..d7a0d1ce3d 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/api/ResponseResult.vue @@ -1,43 +1,124 @@