MCPcopy Create free account
hub / github.com/ChenSen5/api_autotest / savePreParam

Method savePreParam

src/test/java/test/com/sen/api/TestBase.java:77–93  ·  view source on GitHub ↗
(String preParam)

Source from the content-addressed store, hash-verified

75 }
76
77 protected void savePreParam(String preParam) {
78 // 通过';'分隔,将参数加入公共参数map中
79 if (StringUtil.isEmpty(preParam)) {
80 return;
81 }
82 String[] preParamArr = preParam.split(";");
83 String key, value;
84 for (String prepar : preParamArr) {
85 if (StringUtil.isEmpty(prepar)) {
86 continue;
87 }
88 key = prepar.split("=")[0];
89 value = prepar.split("=")[1];
90 ReportUtil.log(String.format("存储%s参数,值为:%s。", key, value));
91 saveDatas.put(key, value);
92 }
93 }
94
95 /**
96 * 取公共参数 并替换参数

Callers 1

buildRequestParamMethod · 0.80

Calls 2

isEmptyMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected