refactor(测试跟踪): xmind用例导入,没有合法的用例提示优化

--bug=1039371 --user=陈建星 【测试跟踪】github#29824,测试跟踪用例导入xmind模版,连续两次点击导入按钮,会先提示导入失败,再次提示导入成功,实际文件并为导入成功 https://www.tapd.cn/55049933/s/1517834
This commit is contained in:
AgAngle 2024-05-21 17:29:50 +08:00 committed by Craftsman
parent 56e391770b
commit d591fc433a
1 changed files with 3 additions and 1 deletions

View File

@ -1215,8 +1215,10 @@ public class TestCaseService {
}
httpRequest.setAttribute("ms-req-title", String.join(",", names));
httpRequest.setAttribute("ms-req-source-id", JSON.toJSONString(ids));
} else {
MSException.throwException(Translator.get("no_legitimate_case_tip"));
return null;
}
}
xmindParser.clear();
} catch (Exception e) {