fix(接口测试): 【接口测试】同一个场景,调试的报告和测试报告详情,两边结果不一致
--bug=1013740 --user=宋天阳 【接口测试】同一个场景,调试的报告和测试报告详情,两边结果不一致 https://www.tapd.cn/55049933/s/1171409
This commit is contained in:
parent
47b876d23f
commit
233528a4fc
|
@ -403,11 +403,7 @@
|
||||||
this.fullTreeNodes = report.steps;
|
this.fullTreeNodes = report.steps;
|
||||||
this.content.console = report.console;
|
this.content.console = report.console;
|
||||||
this.content.error = report.error;
|
this.content.error = report.error;
|
||||||
let successCount = (report.total - report.error - report.errorCode);
|
let successCount = (report.total - report.error - report.errorCode - report.unExecute);
|
||||||
if (successCount >= report.unExecute) {
|
|
||||||
// 测试用例的集合报告中如果含有未执行的步骤,则成功数量统计要把未执行的数量给去掉
|
|
||||||
successCount = successCount - report.unExecute;
|
|
||||||
}
|
|
||||||
this.content.success = successCount;
|
this.content.success = successCount;
|
||||||
this.totalTime = report.totalTime;
|
this.totalTime = report.totalTime;
|
||||||
}
|
}
|
||||||
|
@ -460,10 +456,6 @@
|
||||||
this.content.console = report.console;
|
this.content.console = report.console;
|
||||||
this.content.error = report.error;
|
this.content.error = report.error;
|
||||||
let successCount = (report.total - report.error - report.errorCode - report.unExecute);
|
let successCount = (report.total - report.error - report.errorCode - report.unExecute);
|
||||||
if (successCount >= report.unExecute) {
|
|
||||||
// 测试用例的集合报告中如果含有未执行的步骤,则成功数量统计要把未执行的数量给去掉
|
|
||||||
successCount = successCount - report.unExecute;
|
|
||||||
}
|
|
||||||
this.content.success = successCount;
|
this.content.success = successCount;
|
||||||
this.totalTime = report.totalTime;
|
this.totalTime = report.totalTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -308,7 +308,8 @@ export default {
|
||||||
this.content = {scenarios: []};
|
this.content = {scenarios: []};
|
||||||
}
|
}
|
||||||
this.content.error = this.content.error;
|
this.content.error = this.content.error;
|
||||||
this.content.success = (this.content.total - this.content.error - this.content.errorCode);
|
|
||||||
|
this.content.success = (this.content.total - this.content.error - this.content.errorCode - this.content.unExecute);
|
||||||
this.totalTime = this.content.totalTime;
|
this.totalTime = this.content.totalTime;
|
||||||
this.fullTreeNodes = this.content.steps;
|
this.fullTreeNodes = this.content.steps;
|
||||||
this.recursiveSorting(this.fullTreeNodes);
|
this.recursiveSorting(this.fullTreeNodes);
|
||||||
|
|
Loading…
Reference in New Issue