Jelajahi Sumber

fix: 黑盒部分bug

370774330@qq.com 5 tahun lalu
induk
melakukan
a64f59c569

+ 1 - 1
web/src/main/java/cn/seecoder/web/controller/func_test/FuncTestController.java

@@ -127,7 +127,7 @@ public class FuncTestController {
         return Response.buildSuccess();
     }
 
-    @ApiOperation(value = "删除测试用例步骤", httpMethod = "DELETE")
+    @ApiOperation(value = "更新测试用例状态", httpMethod = "PUT")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "testStepId",dataType ="int", paramType = "query"),
             @ApiImplicitParam(name = "state",dataType ="string", paramType = "query")

+ 1 - 1
web/src/main/java/cn/seecoder/web/service/impl/func_test/FuncFuncTestServiceImpl.java

@@ -67,7 +67,7 @@ public class FuncFuncTestServiceImpl implements FuncTestService {
     @Override
     @Transactional
     public void createTestCase(Integer projectId, String title) {
-        funcTestCaseMapper.insert(FuncTestCasePO.builder().projectId(projectId).title(title).build());
+        funcTestCaseMapper.insert(FuncTestCasePO.builder().projectId(projectId).pass(false).title(title).build());
     }
 
     @Override

+ 1 - 1
web/src/main/resources/sql/table_init.sql

@@ -23,7 +23,7 @@ create table if not exists devcloud.func_test_step
     test_case_id int         null,
     description  text        null,
     expectation  text        null,
-    statev       varchar(11) null,
+    state        varchar(11) null,
     constraint test_step_test_case_id_fk
         foreign key (test_case_id) references devcloud.func_test_case (id)
             on delete set null