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