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 jianxing
parent fb3b09f36c
commit 3f6e32fa90
2 changed files with 3 additions and 3 deletions

View File

@ -400,7 +400,7 @@
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

@ -260,7 +260,7 @@ export default {
element.parentNode.removeChild(element);
},
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) {
@ -271,7 +271,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;
}
}