|
|
@@ -1,5 +1,6 @@
|
|
|
package cn.seecoder.web.controller.func_test;
|
|
|
|
|
|
+import cn.seecoder.web.model.enums.FuncTestStepState;
|
|
|
import cn.seecoder.web.model.vo.func_test.FuncTestRecordVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
@@ -109,11 +110,12 @@ public class FuncTestController {
|
|
|
@ApiOperation(value = "更新测试用例步骤内容", httpMethod = "PUT")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "testStepId",dataType ="int", paramType = "query"),
|
|
|
- @ApiImplicitParam(name = "description",dataType ="string", paramType = "query")
|
|
|
+ @ApiImplicitParam(name = "description",dataType ="string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "expectation",dataType ="string", paramType = "query")
|
|
|
})
|
|
|
@PutMapping("/steps")
|
|
|
- public Response updateTestStepDescription(@RequestParam("testStepId") Integer testStepId, @RequestParam("description") String description){
|
|
|
- funcTestService.updateTestStepDescription(testStepId, description);
|
|
|
+ public Response updateTestStepInfo(@RequestParam("testStepId") Integer testStepId, @RequestParam("description") String description, @RequestParam("expectation") String expectation){
|
|
|
+ funcTestService.updateTestStepInfo(testStepId, description, expectation);
|
|
|
return Response.buildSuccess();
|
|
|
}
|
|
|
|
|
|
@@ -125,6 +127,18 @@ public class FuncTestController {
|
|
|
return Response.buildSuccess();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "删除测试用例步骤", httpMethod = "DELETE")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "testStepId",dataType ="int", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "state",dataType ="string", paramType = "query")
|
|
|
+ })
|
|
|
+ @PutMapping("/steps/state")
|
|
|
+ public Response updateTestStepState(@RequestParam("testStepId") Integer testStepId,
|
|
|
+ @RequestParam("state")FuncTestStepState state){
|
|
|
+ funcTestService.updateTestStepState(testStepId, state);
|
|
|
+ return Response.buildSuccess();
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "获取当前部署的所有相关测试用例历史记录信息", httpMethod = "GET")
|
|
|
@ApiImplicitParam(name = "projectId",dataType ="int", paramType = "query")
|
|
|
@GetMapping("/record/latest")
|