refactor(接口测试): 修复接口集合测试报告不加载302数据的问题
--bug=1013541 --user=宋天阳 【接口测试】批量执行CASE,集合报告中,302的case没有执行结果 https://www.tapd.cn/55049933/s/1165719
This commit is contained in:
parent
fb3b09f36c
commit
3f6e32fa90
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue