refactor(接口测试): 用例批量执行增加返回数据

This commit is contained in:
fit2-zhao 2022-03-11 17:26:43 +08:00 committed by fit2-zhao
parent 03c3a918bb
commit af551e05f8
1 changed files with 2 additions and 2 deletions

View File

@ -199,9 +199,9 @@ public class ApiTestCaseController {
@PostMapping(value = "/batch/run")
@MsAuditLog(module = OperLogModule.API_DEFINITION_CASE, type = OperLogConstants.EXECUTE, content = "#msClass.getLogDetails(#request.caseId)", msClass = ApiTestCaseService.class)
public void batchRun(@RequestBody ApiCaseRunRequest request) {
public List<MsExecResponseDTO> batchRun(@RequestBody ApiCaseRunRequest request) {
request.setTriggerMode(ReportTriggerMode.BATCH.name());
apiCaseExecuteService.run(request);
return apiCaseExecuteService.run(request);
}
@PostMapping(value = "/jenkins/run")