refactor(测试跟踪): 优化测试计划运行检查可执行用例的方法 (#16525)
Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
34e08760df
commit
08e7ea6167
|
@ -2076,7 +2076,7 @@ public class TestPlanService {
|
||||||
|
|
||||||
public String runPlan(TestplanRunRequest testplanRunRequest) {
|
public String runPlan(TestplanRunRequest testplanRunRequest) {
|
||||||
//检查测试计划下有没有可以执行的用例;
|
//检查测试计划下有没有可以执行的用例;
|
||||||
if (!haveExecCase(testplanRunRequest.getTestPlanId()) || !haveUiCase(testplanRunRequest.getTestPlanId())) {
|
if (!haveExecCase(testplanRunRequest.getTestPlanId()) && !haveUiCase(testplanRunRequest.getTestPlanId())) {
|
||||||
MSException.throwException(Translator.get("plan_warning"));
|
MSException.throwException(Translator.get("plan_warning"));
|
||||||
}
|
}
|
||||||
String envType = testplanRunRequest.getEnvironmentType();
|
String envType = testplanRunRequest.getEnvironmentType();
|
||||||
|
@ -2323,7 +2323,7 @@ public class TestPlanService {
|
||||||
append.append("/");
|
append.append("/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!haveExecCase(planList.get(i).getId()) || !haveUiCase(planList.get(i).getId())) {
|
if (!haveExecCase(planList.get(i).getId()) && !haveUiCase(planList.get(i).getId())) {
|
||||||
haveExecCaseBuilder.append(planList.get(i).getName()).append("; ");
|
haveExecCaseBuilder.append(planList.get(i).getName()).append("; ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue