修改测试程序支持maat回调类配置下发到redis中

This commit is contained in:
renkaige
2018-10-11 15:29:04 +08:00
parent 7208e1d830
commit bbf10f2438
2 changed files with 91 additions and 77 deletions

View File

@@ -386,7 +386,7 @@ public class MaatTestServiceimpl {
maatTableName.substring(maatTableName.lastIndexOf("_") + 1));
dstStr = dstPath.replace("{fileName}", dstStr.substring(dstStr.lastIndexOf("/") + 1));
} else if ("file_id".equals(commonSourceFieldCfg.getDstName())) {
dstStr = dstStr.substring(dstStr.indexOf("group"));
// dstStr = dstStr.substring(dstStr.indexOf("group"));
}
}
switch (commonSourceFieldCfg.getFieldType()) {
@@ -562,7 +562,7 @@ public class MaatTestServiceimpl {
if (!isNum(attrName)) {
String beanVal = map.get(attrName);
String redisVal = valArr[i];
if (beanVal == null || redisVal == null || !beanVal.trim().equals(redisVal.trim())) {
if (!attrName.contains("redisFile")&&(beanVal == null || redisVal == null || !beanVal.trim().equals(redisVal.trim()))) {
FileUtils.addStrToFile(
"\t" + sdf.format(new Date()) + " error:" + redisDb + "号redis库中key=" + key + "的值第" + i
+ "" + attrName + "的值:" + redisVal + "与实际传的值不一样,实际值是:{}\n",