fix(UI自动化): 报告-查看报告详情-导出-场景执行时间和导出前不一致
--bug=1021713 --user=张勇 【测试跟踪】报告-查看报告详情-导出-场景执行时间和导出前不一致 https://www.tapd.cn/55049933/s/1325116
This commit is contained in:
parent
0268c7a8d4
commit
b38a484f3f
|
@ -398,7 +398,11 @@ export default {
|
||||||
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);
|
||||||
this.content.success = successCount;
|
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;
|
this.exportReportIsOk = true;
|
||||||
setTimeout(this.startExport, 500)
|
setTimeout(this.startExport, 500)
|
||||||
|
@ -466,7 +470,11 @@ export default {
|
||||||
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);
|
||||||
this.content.success = successCount;
|
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') {
|
if (this.report && this.report.reportType === 'SCENARIO_INTEGRATED' || this.report.reportType === 'API_INTEGRATED') {
|
||||||
|
|
Loading…
Reference in New Issue