#接口文档
java

            List<CaseTestngHarleyVO> data = caseTestNgMapper.findCaseTestngListByCondition(caseTestNgVO);
            if (data == null || data.isEmpty()) {
                return CompletableFuture.completedFuture(CommonResult.failed("testng not found by id"));
            }
            //生成xml文件
            xmlPath = scriptPath + "/suite" + System.currentTimeMillis() + Math.random() + ".xml";

            if (TestNgXmlUtil.createTestNgXml(data, xmlPath)) {
                return CompletableFuture.completedFuture(CommonResult.failed("create suite.xml failed"));
            }

            //插入执行历史
            testngCycleExecHistory = insertTestngCycleHistory(envId, user, cycleId, data, caseTestNgVO.getSwimLane());
            List<String> caseIds = Arrays.asList(testngCycleExecHistory.getCaseId().split(","));
            //更新状态
            cycleCaseMapper.updateByCycleIdAndCaseType(TestNgConstant.START, 3, testngCycleExecHistory.getCycleId(), caseIds);

设计流程图

接口设计

  • 查询接口
  1. 删除接口