fix(UI自动化): 报告-查看报告详情-导出-场景执行时间和导出前不一致

--bug=1021713 --user=张勇 【测试跟踪】报告-查看报告详情-导出-场景执行时间和导出前不一致 https://www.tapd.cn/55049933/s/1325116
This commit is contained in:
zhangyong 2023-01-10 14:41:59 +08:00 committed by zhangdahai112
parent 0268c7a8d4
commit b38a484f3f
1 changed files with 10 additions and 2 deletions

View File

@ -398,7 +398,11 @@ export default {
this.content.error = report.error;
let successCount = (report.total - report.error - report.errorCode - report.unExecute);
this.content.success = successCount;
this.totalTime = report.totalTime;
if (this.report.endTime > 0) {
this.totalTime = this.report.endTime - this.report.createTime;
} else {
this.totalTime = report.totalTime;
}
}
this.exportReportIsOk = true;
setTimeout(this.startExport, 500)
@ -466,7 +470,11 @@ export default {
this.content.error = report.error;
let successCount = (report.total - report.error - report.errorCode - report.unExecute);
this.content.success = successCount;
this.totalTime = report.totalTime;
if (this.report.endTime > 0) {
this.totalTime = this.report.endTime - this.report.createTime;
} else {
this.totalTime = report.totalTime;
}
}
//
if (this.report && this.report.reportType === 'SCENARIO_INTEGRATED' || this.report.reportType === 'API_INTEGRATED') {