fix(接口测试): 导入场景补充接口用例算法优化

This commit is contained in:
baiqi 2024-10-30 09:44:34 +08:00 committed by Craftsman
parent ba00ddf70b
commit e266fb1adb
1 changed files with 0 additions and 1 deletions

View File

@ -1024,7 +1024,6 @@ public class ApiScenarioDataTransferService {
if (existenceApiCaseNumMap.containsKey(apiTestCaseDTO.getNum())) { if (existenceApiCaseNumMap.containsKey(apiTestCaseDTO.getNum())) {
returnResource.putApiTestCase(apiTestCaseDTO.getId(), existenceApiCaseNumMap.get(apiTestCaseDTO.getNum())); returnResource.putApiTestCase(apiTestCaseDTO.getId(), existenceApiCaseNumMap.get(apiTestCaseDTO.getNum()));
} else { } else {
apiTestCaseDTO.setProjectId(targetProjectId);
returnResource.putApiTestCase(apiTestCaseDTO.getId(), apiTestCaseDTO); returnResource.putApiTestCase(apiTestCaseDTO.getId(), apiTestCaseDTO);
apiTestCaseDTO.setId(IDGenerator.nextStr()); apiTestCaseDTO.setId(IDGenerator.nextStr());
apiTestCaseDTO.setName(apiTestCaseDTO.getName() + "_" + System.currentTimeMillis()); apiTestCaseDTO.setName(apiTestCaseDTO.getName() + "_" + System.currentTimeMillis());