fix(测试跟踪): 修复测试计划里没有环境的场景在运行并保存的时候环境保存失败问题
--bug=1020897--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001020897
This commit is contained in:
parent
bcb0f887c9
commit
02114b90ff
|
@ -339,11 +339,19 @@ public class TestPlanScenarioCaseService {
|
|||
if (envMap != null && !envMap.isEmpty()) {
|
||||
env = JSON.toJSONString(envMap);
|
||||
}
|
||||
} else {
|
||||
Map<String, String> existMap = JSON.parseObject(env, Map.class);
|
||||
if (existMap.isEmpty()) {
|
||||
if (envMap != null && !envMap.isEmpty()) {
|
||||
env = JSON.toJSONString(envMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
Map<String, String> map = JSON.parseObject(env, Map.class);
|
||||
if (map.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Set<String> set = map.keySet();
|
||||
for (String s : set) {
|
||||
if (StringUtils.isNotBlank(envMap.get(s))) {
|
||||
|
|
Loading…
Reference in New Issue