fix(接口测试): 修复用例和接口调试页面的响应模块中不展示误报码的问题
--bug=1017901 --user=宋天阳 【接口测试】开启误报-执行接口case和场景后误报设置不生效 https://www.tapd.cn/55049933/s/1259945
This commit is contained in:
parent
ddb58810bd
commit
1788057854
|
@ -39,9 +39,9 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- 请求响应时间 -->
|
<!-- 请求响应时间 -->
|
||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<div :style="{color: statusColor(totalStatus ? totalStatus : request.status)}">
|
<div :style="{color: statusColor(totalStatus ? totalStatus : request.status)}">
|
||||||
{{ request.responseResult.responseTime }}
|
{{ request.responseResult.responseTime }}
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<el-tag v-if="request.testing" class="ms-test-running" size="mini">
|
<el-tag v-if="request.testing" class="ms-test-running" size="mini">
|
||||||
|
@ -153,9 +153,9 @@ export default {
|
||||||
handler(n) {
|
handler(n) {
|
||||||
if (this.request.errorCode) {
|
if (this.request.errorCode) {
|
||||||
this.baseErrorCode = this.request.errorCode;
|
this.baseErrorCode = this.request.errorCode;
|
||||||
} else if (this.request.attachInfoMap && this.request.attachInfoMap.errorReportResult) {
|
} else if (this.request.attachInfoMap && this.request.attachInfoMap.FAKE_ERROR) {
|
||||||
if (this.request.attachInfoMap.errorReportResult !== "") {
|
if (this.request.attachInfoMap.FAKE_ERROR !== "") {
|
||||||
this.baseErrorCode = this.request.attachInfoMap.errorReportResult;
|
this.baseErrorCode = this.request.attachInfoMap.FAKE_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
placement="top">
|
placement="top">
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="response.attachInfoMap && response.attachInfoMap.errorReportResult
|
v-if="response.attachInfoMap && response.attachInfoMap.FAKE_ERROR
|
||||||
&& response.attachInfoMap.status === 'FAKE_ERROR'" class="node-title" :class="'ms-req-error-report-result'">
|
&& response.attachInfoMap.status === 'FAKE_ERROR'" class="node-title" :class="'ms-req-error-report-result'">
|
||||||
{{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }}
|
{{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,17 +20,17 @@
|
||||||
<div v-else class="node-title" :class="response && response.success ?'ms-req-success':'ms-req-error'">
|
<div v-else class="node-title" :class="response && response.success ?'ms-req-success':'ms-req-error'">
|
||||||
{{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }}
|
{{ responseResult && responseResult.responseCode ? responseResult.responseCode : '0' }}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="response && response.attachInfoMap && response.attachInfoMap.errorReportResult">
|
<div v-if="response && response.attachInfoMap && response.attachInfoMap.FAKE_ERROR">
|
||||||
<div class="node-title ms-req-error-report-result"
|
<div class="node-title ms-req-error-report-result"
|
||||||
v-if="response.attachInfoMap.status === 'FAKE_ERROR'" style="margin-left: 0px;padding-left: 0px">
|
v-if="response.attachInfoMap.status === 'FAKE_ERROR'" style="margin-left: 0px;padding-left: 0px">
|
||||||
{{ response.attachInfoMap.errorReportResult }}
|
{{ response.attachInfoMap.FAKE_ERROR }}
|
||||||
</div>
|
</div>
|
||||||
<div class="node-title ms-req-success" v-else-if="response.success"
|
<div class="node-title ms-req-success" v-else-if="response.success"
|
||||||
style="margin-left: 0px;padding-left: 0px">
|
style="margin-left: 0px;padding-left: 0px">
|
||||||
{{ response.attachInfoMap.errorReportResult }}
|
{{ response.attachInfoMap.FAKE_ERROR }}
|
||||||
</div>
|
</div>
|
||||||
<div class="node-title ms-req-error" v-else style="margin-left: 0px;padding-left: 0px">
|
<div class="node-title ms-req-error" v-else style="margin-left: 0px;padding-left: 0px">
|
||||||
{{ response.attachInfoMap.errorReportResult }}
|
{{ response.attachInfoMap.FAKE_ERROR }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
Loading…
Reference in New Issue