refactor(性能测试): 增加压力参数校验
--bug=1024918 --user=刘瑞斌 【性能测试】执行性能测试空指针错误 https://www.tapd.cn/55049933/s/1356639
This commit is contained in:
parent
b4519f858a
commit
7f838bf895
|
@ -120,6 +120,9 @@ public class EngineFactory {
|
||||||
}
|
}
|
||||||
if (values instanceof List) {
|
if (values instanceof List) {
|
||||||
Object value = b.get("value");
|
Object value = b.get("value");
|
||||||
|
if (value == null) {
|
||||||
|
MSException.throwException(Translator.get("load_configuration_value_is_null") + ", key:" + key);
|
||||||
|
}
|
||||||
if ("TargetLevel".equals(key)) {
|
if ("TargetLevel".equals(key)) {
|
||||||
switch (strategy) {
|
switch (strategy) {
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
load_configuration_value_is_null=
|
|
@ -0,0 +1 @@
|
||||||
|
load_configuration_value_is_null=Load configuration error
|
|
@ -0,0 +1 @@
|
||||||
|
load_configuration_value_is_null=压力配置参数错误
|
|
@ -0,0 +1 @@
|
||||||
|
load_configuration_value_is_null=壓力配置參數錯誤
|
Loading…
Reference in New Issue