fix(测试计划): 接口用例结果有时无法查看

This commit is contained in:
shiziyuan9527 2021-09-03 11:56:08 +08:00 committed by 刘瑞斌
parent 95e0e1921c
commit 2f6c9a35f1
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ public class ApiDefinitionExecResultService {
public void saveApiResultByScheduleTask(TestResult result, String testPlanReportId, String type) {
testPlanLog.info("TestPlanReportId[" + testPlanReportId + "] APICASE OVER.");
String saveResultType = type;
if (StringUtils.equalsAny(saveResultType, ApiRunMode.SCHEDULE_API_PLAN.name(), ApiRunMode.JENKINS_API_PLAN.name())) {
if (StringUtils.equalsAny(saveResultType, ApiRunMode.SCHEDULE_API_PLAN.name(), ApiRunMode.JENKINS_API_PLAN.name(), ApiRunMode.MANUAL_PLAN.name())) {
saveResultType = ApiRunMode.API_PLAN.name();
}
String finalSaveResultType = saveResultType;