diff --git a/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java b/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java index 41f00f95..f723c2da 100644 --- a/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java +++ b/sonic-server-controller/src/main/java/org/cloud/sonic/controller/services/impl/TestCasesServiceImpl.java @@ -108,7 +108,7 @@ public JSONObject findSteps(int id) { Map> valueMap = new HashMap<>(); for (GlobalParams g : globalParamsList) { if (g.getParamsValue().contains("|")) { - List shuffle = Arrays.asList(g.getParamsValue().split("|")); + List shuffle = Arrays.asList(g.getParamsValue().split("\\|")); Collections.shuffle(shuffle); valueMap.put(g.getParamsKey(), shuffle); } else {