diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java index 50664aa1b2..bc321d5105 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java @@ -280,10 +280,10 @@ public class PerformanceTestService { String testResourcePoolId = loadTest.getTestResourcePoolId(); TestResourcePool testResourcePool = testResourcePoolMapper.selectByPrimaryKey(testResourcePoolId); if (testResourcePool == null) { - MSException.throwException("Test resource pool not exists."); + MSException.throwException(Translator.get("test_resource_pool_not_exists")); } if (ResourceStatusEnum.INVALID.name().equals(testResourcePool.getStatus())) { - MSException.throwException("Test resource pool invalid."); + MSException.throwException(Translator.get("test_resource_pool_invalid")); } // check kafka checkKafka(); diff --git a/backend/src/main/resources/i18n/messages_en_US.properties b/backend/src/main/resources/i18n/messages_en_US.properties index 2667874686..6e658c5e39 100644 --- a/backend/src/main/resources/i18n/messages_en_US.properties +++ b/backend/src/main/resources/i18n/messages_en_US.properties @@ -64,6 +64,8 @@ test_resource_pool_name_already_exists=The test resource pool name already exist load_test=Load Test test_resource_pool_is_use=This resource pool is in use and cannot be deleted only_one_k8s=Only one K8S can be added +test_resource_pool_not_exists=Test resource pool not exists +test_resource_pool_invalid=Test resource pool invalid #project project_name_is_null=Project name cannot be null project_name_already_exists=The project name already exists diff --git a/backend/src/main/resources/i18n/messages_zh_CN.properties b/backend/src/main/resources/i18n/messages_zh_CN.properties index 89f35d4e0a..4234f9553e 100644 --- a/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -64,6 +64,8 @@ test_resource_pool_name_already_exists=资源池名称已存在 load_test=性能测试 test_resource_pool_is_use=正在使用此资源池,无法删除 only_one_k8s=只能添加一个 K8S +test_resource_pool_not_exists=测试资源池不存在 +test_resource_pool_invalid=当前测试使用的资源池处于禁用状态 #project project_name_is_null=项目名称不能为空 project_name_already_exists=项目名称已存在 diff --git a/backend/src/main/resources/i18n/messages_zh_TW.properties b/backend/src/main/resources/i18n/messages_zh_TW.properties index bff20e3cc5..65c384ca7b 100644 --- a/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -64,6 +64,8 @@ test_resource_pool_name_already_exists=資源池名稱已存在 load_test=性能測試 test_resource_pool_is_use=正在使用此資源池,無法刪除 only_one_k8s=只能添加一個 K8S +test_resource_pool_not_exists=測試資源池不存在 +test_resource_pool_invalid=當前測試使用的資源池處於禁用狀態 #project project_name_is_null=項目名稱不能為空 project_name_already_exists=項目名稱已存在