fix(接口测试): 修复case名称重复提示错误的缺陷

This commit is contained in:
wxg0103 2022-11-16 14:58:09 +08:00 committed by wxg0103
parent 8772efb00b
commit 7a68ede810
4 changed files with 5 additions and 2 deletions

View File

@ -373,7 +373,7 @@ public class ApiTestCaseService {
public void checkNameExist(SaveApiTestCaseRequest request) {
if (hasSameCase(request)) {
MSException.throwException(Translator.get("load_test_already_exists") + ": " + request.getName());
MSException.throwException(Translator.get("case_name_is_already_exist") + ": " + request.getName());
}
}

View File

@ -342,4 +342,5 @@ create_api_case=New interface use case
api_case_create_notice=Interface use case new notification
update_api_case=Updated interface use case
api_case_update_notice=Interface use case update notification
error_xml_struct=Data is not xml
error_xml_struct=Data is not xml
case_name_is_already_exist=Duplicate Case name

View File

@ -362,3 +362,4 @@ api_case_create_notice=接口用例新建通知
update_api_case=更新了接口用例
api_case_update_notice=接口用例更新通知
error_xml_struct=错误的xml数据
case_name_is_already_exist=用例名称不能重复

View File

@ -362,3 +362,4 @@ api_case_create_notice=接口用例新建通知
update_api_case=更新了接口用例
api_case_update_notice=接口用例更新通知
error_xml_struct=錯誤的xml數據
case_name_is_already_exist=用例名稱不能重復