fix(测试跟踪): 修复定时任务消息通知的actualStartTime不是报告开始时间的缺陷
--bug=1019386 --user=王孝刚 定时任务消息知道的actualStartTime和actualEndTime变量建议和报告的开始结束时间一致 https://www.tapd.cn/55049933/s/1295324
This commit is contained in:
parent
3515df5519
commit
b85c7d49c2
|
@ -842,6 +842,13 @@ public class TestPlanService {
|
||||||
this.verifyPool(projectId, runModeConfig);
|
this.verifyPool(projectId, runModeConfig);
|
||||||
//创建测试报告,然后返回的ID重新赋值为resourceID,作为后续的参数
|
//创建测试报告,然后返回的ID重新赋值为resourceID,作为后续的参数
|
||||||
TestPlanScheduleReportInfoDTO reportInfoDTO = this.genTestPlanReport(planReportId, testPlanId, userId, triggerMode, runModeConfig);
|
TestPlanScheduleReportInfoDTO reportInfoDTO = this.genTestPlanReport(planReportId, testPlanId, userId, triggerMode, runModeConfig);
|
||||||
|
//定时任务执行重新设置实际开始时间
|
||||||
|
if (StringUtils.equals(triggerMode, TriggerMode.SCHEDULE.name())) {
|
||||||
|
TestPlanWithBLOBs testPlanWithBLOBs = new TestPlanWithBLOBs();
|
||||||
|
testPlanWithBLOBs.setId(testPlanId);
|
||||||
|
testPlanWithBLOBs.setActualStartTime(System.currentTimeMillis());
|
||||||
|
testPlanMapper.updateByPrimaryKeySelective(testPlanWithBLOBs);
|
||||||
|
}
|
||||||
//测试计划准备执行,取消测试计划的实际结束时间
|
//测试计划准备执行,取消测试计划的实际结束时间
|
||||||
extTestPlanMapper.updateActualEndTimeIsNullById(testPlanId);
|
extTestPlanMapper.updateActualEndTimeIsNullById(testPlanId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue