Merge remote-tracking branch 'origin/master'

This commit is contained in:
Captain.B 2021-03-25 12:22:23 +08:00
commit a484f5a380
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);