【问题】Switch-Case过长的sonar问题Reduce the number of switch cases from 38 to at most 30.
1 switch (m.get("操作").toString()) {
2 case "启动应用":
3 builder.append(" BOperate.open();\r\n");
4 break;
5 case "点击":
6 builder.append(" BOperate.click(\"" + replaceQuotation(m.get("Xpath").toString().trim()) + "\",true);\r\n");
7 break;
8 case "输入":
9 builder.append(" BOperate.type(\"" + replaceQuotation(m.get("Xpath").toString().trim()) + "\"," + paramStr(m.get("参数1")) + ");\r\n");
10 break;
11 case "获取文本":
12 builder.append(" " + valStr(paramStr(m.get("参数1"))) + " = BOperate.getText(\"" + replaceQuotation(m.get("Xpath").toString().trim()) + "\"