refactor(测试跟踪): 优化测试计划运行检查可执行用例的方法 (#16525)

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-08-01 10:46:09 +08:00 committed by GitHub
parent 34e08760df
commit 08e7ea6167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2076,7 +2076,7 @@ public class TestPlanService {
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"));
}
String envType = testplanRunRequest.getEnvironmentType();
@ -2323,7 +2323,7 @@ public class TestPlanService {
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("; ");
}
}