fix(测试计划,系统设置): #1006013 【测试计划】执行计划,查看测试报告,报告页面异常;系统设置删除项目报错

--bug=1006013 --user=宋天阳 【测试计划】执行计划,查看测试报告,报告页面异常
https://www.tapd.cn/55049933/s/1040472;系统设置删除项目报错
This commit is contained in:
song-tianyang 2021-08-26 11:08:28 +08:00 committed by 刘瑞斌
parent 39ec7debf5
commit 5d5ef4baff
3 changed files with 8 additions and 2 deletions

View File

@ -194,7 +194,11 @@ public class ProjectService {
deleteProjectUserGroup(projectId);
//关闭TCP
this.closeMockTcp(projectId);
try {
//捕获关闭失败的异常使其不影响删除
this.closeMockTcp(projectId);
}catch (Exception e){}
// delete project
projectMapper.deleteByPrimaryKey(projectId);

View File

@ -990,7 +990,6 @@ public class TestPlanService {
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public String run(String testPlanID, String projectID, String userId, String triggerMode, String apiRunConfig) {
triggerMode = ReportTriggerMode.SCHEDULE.name();
//创建测试报告然后返回的ID重新赋值为resourceID作为后续的参数
TestPlanScheduleReportInfoDTO reportInfoDTO = testPlanReportService.genTestPlanReportBySchedule(projectID, testPlanID, userId, triggerMode);
@ -1647,6 +1646,7 @@ 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

@ -98,6 +98,8 @@ export default {
apiCases() {
if (this.apiCases) {
this.$emit('setSize', this.apiCases.length);
} else {
this.apiCases = [];
}
}
},