fix(测试计划): 修复测试计划执行报告的开始时间取值错误的问题

修复测试计划执行报告的开始时间取值错误的问题
This commit is contained in:
song-tianyang 2021-08-26 11:47:28 +08:00 committed by 刘瑞斌
parent 8b9c750344
commit d220cb5992
3 changed files with 4 additions and 2 deletions

View File

@ -558,6 +558,9 @@ public class TestPlanReportService {
testPlanLog.info("ReportId[" + testPlanReport.getId() + "] COUNT OVER. COUNT RESULT :" + JSONObject.toJSONString(testPlanExecuteResult));
TestPlanSimpleReportDTO reportDTO = testPlanService.buildPlanReport(executeInfo, testPlanReport.getTestPlanId(),false);
//更新执行时间
reportDTO.setStartTime(testPlanReport.getStartTime());
reportDTO.setEndTime(System.currentTimeMillis());
testPlanReportContentMapper.updateByPrimaryKeySelective(parseReportDaoToReportContent(reportDTO, reportContent));
String testPlanStatus = this.getTestPlanReportStatus(testPlanReport, reportDTO);

View File

@ -1646,7 +1646,6 @@ public class TestPlanService {
buildApiReport(report, config, executeInfo, planId, saveResponse);
buildLoadReport(report, config, executeInfo, planId, saveResponse);
report.setEndTime(System.currentTimeMillis());
return report;
}else {
return null;

View File

@ -155,7 +155,7 @@ export default {
},
created() {
this.refreshButtonActiveClass(this.activeDom);
if (this.currentApi.id !== null && (this.currentProtocol === "HTTP" || this.currentProtocol === "TCP")) {
if (this.currentApi.id && (this.currentProtocol === "HTTP" || this.currentProtocol === "TCP")) {
this.mockSetting();
}
},