fix(测试跟踪): 修复测试计划报告内含多条性能测试报告切换报告时部分数据不清空的问题

--bug=1010039 --user=宋天阳
【测试跟踪】测试计划报告里,失败的性能用例报告显示和所有用例里不一样【+github#10047】
https://www.tapd.cn/55049933/s/1100037
This commit is contained in:
song-tianyang 2022-01-27 15:40:49 +08:00 committed by 刘瑞斌
parent e577425734
commit 28027266ab
2 changed files with 5 additions and 1 deletions

View File

@ -26,9 +26,9 @@ public class ErrorReportLibraryUtil {
if (StringUtils.startsWith(assertion.getContent(), ERROR_CODE_START)) {
errorReportAssertionList.add(assertion);
}else {
otherAssertionCount ++;
if(!assertion.isPass()){
hasOtherErrorAssertion = true;
otherAssertionCount ++;
}
}
}

View File

@ -264,10 +264,14 @@ export default {
}
},
clearData() {
this.show = false;
this.startTime = '0';
this.endTime = '0';
this.minutes = '0';
this.seconds = '0';
this.$nextTick(() => {
this.show = true;
})
},
stopTest(forceStop) {
this.result = this.$get('/performance/stop/' + this.reportId + '/' + forceStop, () => {