fix(接口测试): 导入场景补充接口用例算法优化
This commit is contained in:
parent
ba00ddf70b
commit
e266fb1adb
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue