fix(接口测试): 优化TCP响应部分的请求内容
--bug=1019710 --user=宋天阳 【接口测试】github#19741,TCP接口,响应内容的请求地址未显示 {#_orginal_url#}
This commit is contained in:
parent
73aa112018
commit
a710fbcf0a
|
@ -115,14 +115,14 @@
|
|||
:{{ getVariableSize() }}
|
||||
</el-col>
|
||||
<el-col :span="2" class="ms-col-one ms-font">
|
||||
<el-checkbox v-model="enableCookieShare"
|
||||
><span style="font-size: 13px">{{ $t('api_test.scenario.share_cookie') }}</span></el-checkbox
|
||||
>
|
||||
<el-checkbox v-model="enableCookieShare">
|
||||
<span style="font-size: 13px">{{ $t('api_test.scenario.share_cookie') }}</span>
|
||||
</el-checkbox>
|
||||
</el-col>
|
||||
<el-col :span="3" class="ms-col-one ms-font">
|
||||
<el-checkbox v-model="onSampleError"
|
||||
><span style="font-size: 13px">{{ $t('commons.failure_continues') }}</span></el-checkbox
|
||||
>
|
||||
<el-checkbox v-model="onSampleError">
|
||||
<span style="font-size: 13px">{{ $t('commons.failure_continues') }}</span>
|
||||
</el-checkbox>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="13">
|
||||
|
|
|
@ -157,21 +157,18 @@ export default {
|
|||
if (!this.response.responseResult.vars) {
|
||||
this.response.responseResult.vars = '';
|
||||
}
|
||||
this.reqMessages =
|
||||
this.$t('api_test.request.address') +
|
||||
':\n' +
|
||||
this.response.url +
|
||||
'\n' +
|
||||
this.$t('api_test.scenario.headers') +
|
||||
':\n' +
|
||||
this.response.headers +
|
||||
'\n' +
|
||||
'Cookies :\n' +
|
||||
this.response.cookies +
|
||||
'\n' +
|
||||
'Body:' +
|
||||
'\n' +
|
||||
this.response.body;
|
||||
this.reqMessages = '';
|
||||
if (this.response.url) {
|
||||
this.reqMessages += this.$t('api_test.request.address') + ':\n' + this.response.url + '\n';
|
||||
}
|
||||
if (this.response.headers) {
|
||||
this.reqMessages += this.$t('api_test.scenario.headers') + ':\n' + this.response.headers + '\n';
|
||||
}
|
||||
|
||||
if (this.response.cookies) {
|
||||
this.reqMessages += 'Cookies :\n' + this.response.cookies + '\n';
|
||||
}
|
||||
this.reqMessages += 'Body:' + '\n' + this.response.body;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue