fix(接口测试): 测试计划无法结束
This commit is contained in:
parent
e278bfa93e
commit
aaf5ffd470
|
@ -125,6 +125,11 @@ public class PlanRunTestPlanApiCaseService {
|
||||||
|
|
||||||
List<ExecTaskItem> execTaskItems = apiBatchRunBaseService.getExecTaskItemByTaskIdAndCollectionId(testPlanExecutionQueue.getTaskId(),
|
List<ExecTaskItem> execTaskItems = apiBatchRunBaseService.getExecTaskItemByTaskIdAndCollectionId(testPlanExecutionQueue.getTaskId(),
|
||||||
collection.getId(), testPlanExecutionQueue.isRerun());
|
collection.getId(), testPlanExecutionQueue.isRerun());
|
||||||
|
|
||||||
|
if (CollectionUtils.isEmpty(execTaskItems)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
SubListUtils.dealForSubList(execTaskItems, ApiBatchRunBaseService.BATCH_TASK_ITEM_SIZE, subExecTaskItems -> {
|
SubListUtils.dealForSubList(execTaskItems, ApiBatchRunBaseService.BATCH_TASK_ITEM_SIZE, subExecTaskItems -> {
|
||||||
List<TaskItem> taskItems = subExecTaskItems
|
List<TaskItem> taskItems = subExecTaskItems
|
||||||
.stream()
|
.stream()
|
||||||
|
|
|
@ -120,6 +120,11 @@ public class PlanRunTestPlanApiScenarioService {
|
||||||
|
|
||||||
List<ExecTaskItem> execTaskItems = apiBatchRunBaseService.getExecTaskItemByTaskIdAndCollectionId(testPlanExecutionQueue.getTaskId(),
|
List<ExecTaskItem> execTaskItems = apiBatchRunBaseService.getExecTaskItemByTaskIdAndCollectionId(testPlanExecutionQueue.getTaskId(),
|
||||||
collection.getId(), testPlanExecutionQueue.isRerun());
|
collection.getId(), testPlanExecutionQueue.isRerun());
|
||||||
|
|
||||||
|
if (CollectionUtils.isEmpty(execTaskItems)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
SubListUtils.dealForSubList(execTaskItems, ApiBatchRunBaseService.BATCH_TASK_ITEM_SIZE, subExecTaskItems -> {
|
SubListUtils.dealForSubList(execTaskItems, ApiBatchRunBaseService.BATCH_TASK_ITEM_SIZE, subExecTaskItems -> {
|
||||||
List<TaskItem> taskItems = subExecTaskItems
|
List<TaskItem> taskItems = subExecTaskItems
|
||||||
.stream()
|
.stream()
|
||||||
|
|
Loading…
Reference in New Issue