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