fix(接口测试): 解决postman_har_jemeter接口用例场景导入没有用例等级问题
--user=郭雨琦 --bug=1014870 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014870
This commit is contained in:
parent
a4ee5648af
commit
a0c5e78950
|
@ -1439,6 +1439,9 @@ public class ApiAutomationService {
|
|||
if (item.getVersionId() == null || (!item.getVersionId().equals("new") && !item.getVersionId().equals("update"))) {
|
||||
item.setNum(num);
|
||||
}
|
||||
if (StringUtils.isBlank(item.getLevel())) {
|
||||
item.setLevel("P0");
|
||||
}
|
||||
if (BooleanUtils.isFalse(request.getOpenCustomNum())) {
|
||||
// 如果未开启,即使有自定值也直接覆盖
|
||||
item.setCustomNum(String.valueOf(num));
|
||||
|
|
|
@ -902,6 +902,10 @@ public class ApiDefinitionService {
|
|||
apiTestCaseWithBLOBs.setToBeUpdateTime(apiDefinition.getToBeUpdateTime());
|
||||
}
|
||||
|
||||
if (StringUtils.isBlank(apiTestCaseWithBLOBs.getPriority())) {
|
||||
apiTestCaseWithBLOBs.setPriority("P0");
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(apiTestCaseWithBLOBs.getId())) {
|
||||
apiTestCaseMapper.updateByPrimaryKeyWithBLOBs(apiTestCaseWithBLOBs);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue