refactor(性能测试): 增加压力参数校验

--bug=1024918 --user=刘瑞斌 【性能测试】执行性能测试空指针错误 https://www.tapd.cn/55049933/s/1356639
This commit is contained in:
CaptainB 2023-03-28 16:56:19 +08:00 committed by 刘瑞斌
parent ac4115490b
commit 160025c92b
5 changed files with 7 additions and 0 deletions

View File

@ -120,6 +120,9 @@ public class EngineFactory {
}
if (values instanceof List) {
Object value = b.get("value");
if (value == null) {
MSException.throwException(Translator.get("load_configuration_value_is_null") + ", key:" + key);
}
if ("TargetLevel".equals(key)) {
switch (strategy) {
default:

View File

@ -0,0 +1 @@
load_configuration_value_is_null=

View File

@ -0,0 +1 @@
load_configuration_value_is_null=Load configuration error

View File

@ -0,0 +1 @@
load_configuration_value_is_null=压力配置参数错误

View File

@ -0,0 +1 @@
load_configuration_value_is_null=壓力配置參數錯誤