fix(接口测试): 用例执行完后,报告分享链接报错

--bug=1042988 --user=陈建星 【接口测试】场景-执行场景成功,但是后台有错误日志 https://www.tapd.cn/55049933/s/1535948
This commit is contained in:
AgAngle 2024-06-25 10:42:59 +08:00 committed by 刘瑞斌
parent ff37b8128f
commit 837a74d53d
2 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,7 @@ public class ApiTestCaseBatchRunService {
TaskRequestDTO taskRequest = getTaskRequestDTO(reportId, apiTestCase, runModeConfig);
taskRequest.getTaskInfo().setQueueId(queue.getQueueId());
taskRequest.getTaskInfo().setUserId(queue.getUserId());
taskRequest.getTaskItem().setRequestCount(1L);
apiExecuteService.execute(taskRequest);

View File

@ -260,6 +260,7 @@ public class TestPlanApiCaseBatchRunService {
TaskBatchRequestDTO taskRequest = getTaskBatchRequestDTO(projectId, runModeConfig);
taskRequest.setTaskItems(taskItems);
taskRequest.getTaskInfo().setParentQueueId(parentQueueId);
taskRequest.getTaskInfo().setUserId(userId);
apiExecuteService.batchExecute(taskRequest);
}