fix(接口测试): 修复场景引用多个事务控制器状态显示错误的缺陷
--bug=1019923 --user=王孝刚 【接口测试】场景引用带控制器的场景,控制器里的步骤没执行,并且再次打开场景后,控制器是禁用的 https://www.tapd.cn/55049933/s/1312216
This commit is contained in:
parent
41b5a18a8b
commit
f08188c9d0
|
@ -81,6 +81,7 @@ public class MsHashTreeService {
|
||||||
public static final String CUSTOM_NUM = "customNum";
|
public static final String CUSTOM_NUM = "customNum";
|
||||||
public static final String SHOW_CUSTOM_NUM = "showCustomNum";
|
public static final String SHOW_CUSTOM_NUM = "showCustomNum";
|
||||||
public static final String VERSION_ID = "versionId";
|
public static final String VERSION_ID = "versionId";
|
||||||
|
public static final String RESOURCE_ID = "resourceId";
|
||||||
|
|
||||||
public void setHashTree(JSONArray hashTree) {
|
public void setHashTree(JSONArray hashTree) {
|
||||||
// 将引用转成复制
|
// 将引用转成复制
|
||||||
|
@ -255,7 +256,7 @@ public class MsHashTreeService {
|
||||||
JSONObject orgJsonObject = (JSONObject) obj;
|
JSONObject orgJsonObject = (JSONObject) obj;
|
||||||
targetJSONArray.forEach(targetObj -> {
|
targetJSONArray.forEach(targetObj -> {
|
||||||
JSONObject targetJsonObject = (JSONObject) targetObj;
|
JSONObject targetJsonObject = (JSONObject) targetObj;
|
||||||
if (StringUtils.equals(orgJsonObject.optString(ID), targetJsonObject.optString(ID))) {
|
if (StringUtils.equals(orgJsonObject.optString(RESOURCE_ID), targetJsonObject.optString(RESOURCE_ID))) {
|
||||||
setRefEnable(targetJsonObject, orgJsonObject);
|
setRefEnable(targetJsonObject, orgJsonObject);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue