fix(测试跟踪): 公共用例库和用例列表复制是名称生成规则不一致问题

--bug=1016141 --user=宋昌昌 【测试跟踪】公共用例库用例批量复制到用例列表,复制名称需优化 https://www.tapd.cn/55049933/s/1232111
This commit is contained in:
song-cc-rock 2022-08-24 11:12:16 +08:00 committed by 刘瑞斌
parent 2a2edf8d6f
commit b787dc19c1
1 changed files with 1 additions and 1 deletions

View File

@ -1892,7 +1892,7 @@ public class TestCaseService {
String oldTestCaseId = batchCopy.getId();
String id = UUID.randomUUID().toString();
batchCopy.setId(id);
batchCopy.setName(ServiceUtils.getCopyName(batchCopy.getName()));
batchCopy.setName("copy_" + batchCopy.getName());
if (batchCopy.getName().length() > 255) {
batchCopy.setName(batchCopy.getName().substring(0, 250) + batchCopy.getName().substring(batchCopy.getName().length() - 5));
}