fix(测试计划) 修复测试用例执行问题 #1155049933001006736
--bug=1006736 --user=赵勇 【测试计划】测试计划中批量执行接口测试用例未执行 https://www.tapd.cn/55049933/s/1048987
This commit is contained in:
parent
6c7b1f7cca
commit
116af643ec
|
@ -34,7 +34,7 @@ public class SerialScenarioExecTask<T> implements Callable<T> {
|
||||||
@Override
|
@Override
|
||||||
public T call() {
|
public T call() {
|
||||||
try {
|
try {
|
||||||
if (MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
if (runModeDataDTO.getReport()!=null && MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
||||||
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ public class SerialScenarioExecTask<T> implements Callable<T> {
|
||||||
if (report != null && !report.getStatus().equals(APITestStatus.Running.name())) {
|
if (report != null && !report.getStatus().equals(APITestStatus.Running.name())) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
if (runModeDataDTO.getReport()!=null && MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
||||||
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,7 +421,7 @@ public class TestPlanApiCaseService {
|
||||||
public void run() {
|
public void run() {
|
||||||
for (TestPlanApiCase testPlanApiCase : executeQueue.keySet()) {
|
for (TestPlanApiCase testPlanApiCase : executeQueue.keySet()) {
|
||||||
try {
|
try {
|
||||||
if (MessageCache.terminationOrderDeque.contains(executeQueue.get(testPlanApiCase).getId())) {
|
if (executeQueue.get(testPlanApiCase)!=null && MessageCache.terminationOrderDeque.contains(executeQueue.get(testPlanApiCase).getId())) {
|
||||||
MessageCache.terminationOrderDeque.remove(executeQueue.get(testPlanApiCase).getId());
|
MessageCache.terminationOrderDeque.remove(executeQueue.get(testPlanApiCase).getId());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ public class SerialApiExecTask<T> implements Callable<T> {
|
||||||
@Override
|
@Override
|
||||||
public T call() {
|
public T call() {
|
||||||
try {
|
try {
|
||||||
if (MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
if (runModeDataDTO.getReport()!=null && MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
||||||
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ public class SerialApiExecTask<T> implements Callable<T> {
|
||||||
if (report != null && !report.getStatus().equals(APITestStatus.Running.name())) {
|
if (report != null && !report.getStatus().equals(APITestStatus.Running.name())) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
if (runModeDataDTO.getReport()!=null && MessageCache.terminationOrderDeque.contains(runModeDataDTO.getReport().getId())) {
|
||||||
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
MessageCache.terminationOrderDeque.remove(runModeDataDTO.getReport().getId());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,7 +237,7 @@ export default {
|
||||||
let taskTotal = e.data;
|
let taskTotal = e.data;
|
||||||
this.runningTotal = taskTotal;
|
this.runningTotal = taskTotal;
|
||||||
this.initIndex++;
|
this.initIndex++;
|
||||||
if (this.taskVisible && taskTotal > 0 && this.initEnd) {
|
if (this.taskVisible && this.initEnd) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.initEnd = false;
|
this.initEnd = false;
|
||||||
this.init();
|
this.init();
|
||||||
|
|
Loading…
Reference in New Issue