fix(测试计划): 优化测试计划执行中止时的操作显示

This commit is contained in:
song-tianyang 2024-06-18 22:49:28 +08:00 committed by Craftsman
parent ebb42a6193
commit cb659153a5
1 changed files with 9 additions and 2 deletions

View File

@ -134,7 +134,9 @@ public class TestPlanExecuteService {
/**
* 单个执行测试计划
* 这里涉及到嵌套查询不使用事务中间涉及到的报告生成测试计划字段更改测试报告汇总等操作会开启子事务处理
*/
@Transactional(rollbackFor = Exception.class, propagation = Propagation.NOT_SUPPORTED)
public String singleExecuteTestPlan(TestPlanExecuteRequest request, String userId) {
TestPlanExecutionQueue executionQueue = new TestPlanExecutionQueue();
executionQueue.setSourceID(request.getExecuteId());
@ -165,10 +167,15 @@ public class TestPlanExecuteService {
LogUtils.info("测试计划的单独执行start计划报告[{}] , 资源ID[{}]", singleExecuteRootQueue.getPrepareReportId(), singleExecuteRootQueue.getSourceID());
return executeTestPlanOrGroup(executionQueue);
String returnId = executeTestPlanOrGroup(executionQueue);
return returnId;
}
//批量执行测试计划组
/**
* 批量执行测试计划
* 这里涉及到嵌套查询不使用事务中间涉及到的报告生成测试计划字段更改测试报告汇总等操作会开启子事务处理
*/
@Transactional(rollbackFor = Exception.class, propagation = Propagation.NOT_SUPPORTED)
public void batchExecuteTestPlan(TestPlanBatchExecuteRequest request, String userId) {
List<String> rightfulIds = testPlanService.selectRightfulIds(request.getExecuteIds());