@RequestMapping( value = "/execute", method = {RequestMethod.POST}) @ResponseBody public TestResult execute(@RequestBody Test test) { return testExecutionService.execute(projectService.getActiveProject(), test); }
@RequestMapping( value = "/stop/{processId}", method = {RequestMethod.GET}) @ResponseBody public ResponseEntity<String> stop(@PathVariable("processId") String processId) { testExecutionService.stop(processId); return new ResponseEntity<>(HttpStatus.OK); }