fix: 接口定义执行结果修改

This commit is contained in:
wenyann 2021-03-25 12:14:12 +08:00
parent 2d6dce1c35
commit 049a006e97
1 changed files with 1 additions and 4 deletions

View File

@ -185,10 +185,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl
}
} else if (StringUtils.equals(this.runMode, ApiRunMode.JENKINS.name())) {
apiDefinitionService.addResult(testResult);
apiDefinitionExecResultService.saveApiResult(testResult, ApiRunMode.API.name());
ApiDefinitionExecResult api=apiTestCaseService.getInfo(testId);
report.setStatus(api.getStatus());
apiDefinitionExecResultService.saveApiResult(testResult, ApiRunMode.DEFINITION.name());
} else if (StringUtils.equals(this.runMode, ApiRunMode.JENKINS_API_PLAN.name())) {
apiDefinitionService.addResult(testResult);