fix(测试计划,系统设置): #1006013 【测试计划】执行计划,查看测试报告,报告页面异常;系统设置删除项目报错
--bug=1006013 --user=宋天阳 【测试计划】执行计划,查看测试报告,报告页面异常 https://www.tapd.cn/55049933/s/1040472;系统设置删除项目报错
This commit is contained in:
parent
39ec7debf5
commit
5d5ef4baff
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -98,6 +98,8 @@ export default {
|
|||
apiCases() {
|
||||
if (this.apiCases) {
|
||||
this.$emit('setSize', this.apiCases.length);
|
||||
} else {
|
||||
this.apiCases = [];
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue