refactor(接口测试): 修复接口集合测试报告不加载302数据的问题

--bug=1013541 --user=宋天阳 【接口测试】批量执行CASE,集合报告中,302的case没有执行结果
https://www.tapd.cn/55049933/s/1165719
This commit is contained in:
song-tianyang 2022-05-26 20:32:32 +08:00 committed by TIanyang
parent e79edef4ee
commit ef632ef799
2 changed files with 3 additions and 3 deletions

View File

@ -407,7 +407,7 @@ export default {
this.fullTreeNodes = report.steps;
this.content.console = report.console;
this.content.error = report.error;
let successCount = (report.total - report.error - report.errorCode - report.unExecute);
let successCount = (report.total - report.error - report.errorCode);
if (successCount >= report.unExecute) {
//
successCount = successCount - report.unExecute;

View File

@ -234,7 +234,7 @@ export default {
},
methods: {
loadRequestInfoExpand() {
if(!this.request.responseResult || !this.request.responseResult.body){
if( !this.request.responseResult || (!this.request.responseResult.body && this.request.responseResult.body === null)){
this.$get("/api/scenario/report/selectReportContent/" + this.stepId, response => {
let requestResult = response.data;
if (requestResult) {
@ -245,7 +245,7 @@ export default {
});
});
}else {
if (this.request.responseResult && this.request.responseResult.body) {
if (this.request.responseResult && (this.request.responseResult.body || this.request.responseResult.body === '')) {
this.requestInfo = this.request;
}
}