Commit c82a200a authored by xiongjunyi's avatar xiongjunyi

[modify:1.期望值校验字符串是均转换为小写格式校验]

parent 1681b587
This diff is collapsed.
......@@ -142,7 +142,7 @@ public class TestCaseUtil {
if(!res_map.containsKey(split1[0])) {
logger.error("响应中未获取到对应的变量:" + split1[0]);
return false;
}if(!res_map.get(split1[0]).toLowerCase().contains(check_string)){
}if(!res_map.get(split1[0]).toLowerCase().contains(check_string.toLowerCase())){
logger.error( split1[0] + "的期望值:"+ "不匹配!");
return false;
}else{
......@@ -153,7 +153,7 @@ public class TestCaseUtil {
if(!res_map.containsKey(split1[0])){
logger.error("响应中未获取到对应的变量:" +split1[0] );
return false;
}if (!res_map.get(split1[0]).toLowerCase().equals(split1[1])){
}if (!res_map.get(split1[0]).equalsIgnoreCase(split1[1])){
logger.error( split1[0] + "的期望值:"+ "不匹配!");
return false;
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment