fix(接口测试): 修复导入场景后,被引用的场景没有显示新的引用关系的缺陷
--bug=1026414 --user=王孝刚 【接口测试】导入场景后,被引用的场景没有显示新的引用关系 https://www.tapd.cn/55049933/s/1374632 --bug=1026433 --user=王孝刚 【接口自动化】场景-全屏编辑-执行请求-状态一直是测试中无法停止 https://www.tapd.cn/55049933/s/1374636
This commit is contained in:
parent
ae8528241a
commit
8f7097aed5
|
@ -81,6 +81,15 @@ public class ApiScenarioReferenceIdService {
|
||||||
for (int index = 0; index < hashTree.length(); index++) {
|
for (int index = 0; index < hashTree.length(); index++) {
|
||||||
JSONObject item = hashTree.optJSONObject(index);
|
JSONObject item = hashTree.optJSONObject(index);
|
||||||
if (item == null || StringUtils.equals(item.optString(PropertyConstant.TYPE), ElementConstants.SCENARIO)) {
|
if (item == null || StringUtils.equals(item.optString(PropertyConstant.TYPE), ElementConstants.SCENARIO)) {
|
||||||
|
ApiScenarioReferenceId saveItem = new ApiScenarioReferenceId();
|
||||||
|
saveItem.setId(UUID.randomUUID().toString());
|
||||||
|
saveItem.setApiScenarioId(scenario.getId());
|
||||||
|
saveItem.setReferenceId(item.optString(MsHashTreeService.ID));
|
||||||
|
saveItem.setReferenceType(item.optString(MsHashTreeService.REFERENCED));
|
||||||
|
saveItem.setDataType(item.optString(MsHashTreeService.REF_TYPE));
|
||||||
|
saveItem.setCreateTime(System.currentTimeMillis());
|
||||||
|
saveItem.setCreateUserId(SessionUtils.getUserId());
|
||||||
|
returnList.add(saveItem);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1278,6 +1278,9 @@ export default {
|
||||||
this.stopDebug = 'stop';
|
this.stopDebug = 'stop';
|
||||||
this.messageWebSocket.close();
|
this.messageWebSocket.close();
|
||||||
this.reload();
|
this.reload();
|
||||||
|
if (this.$refs.maximizeScenario) {
|
||||||
|
this.$refs.maximizeScenario.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleCommand() {
|
handleCommand() {
|
||||||
|
|
|
@ -222,6 +222,8 @@
|
||||||
@suggestClick="suggestClick"
|
@suggestClick="suggestClick"
|
||||||
@refReload="refReload"
|
@refReload="refReload"
|
||||||
@openScenario="openScenario"
|
@openScenario="openScenario"
|
||||||
|
@runScenario="runScenario"
|
||||||
|
@stopScenario="stopScenario"
|
||||||
v-if="selectedTreeNode && selectedNode" />
|
v-if="selectedTreeNode && selectedNode" />
|
||||||
<!-- 请求下还有的子步骤-->
|
<!-- 请求下还有的子步骤-->
|
||||||
<div v-if="selectedTreeNode && selectedTreeNode.hashTree && showNode(selectedTreeNode)">
|
<div v-if="selectedTreeNode && selectedTreeNode.hashTree && showNode(selectedTreeNode)">
|
||||||
|
@ -241,6 +243,8 @@
|
||||||
@suggestClick="suggestClick"
|
@suggestClick="suggestClick"
|
||||||
@refReload="refReload"
|
@refReload="refReload"
|
||||||
@openScenario="openScenario"
|
@openScenario="openScenario"
|
||||||
|
@runScenario="runScenario"
|
||||||
|
@stopScenario="stopScenario"
|
||||||
v-show="
|
v-show="
|
||||||
selectedTreeNode && selectedNode && stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1
|
selectedTreeNode && selectedNode && stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1
|
||||||
" />
|
" />
|
||||||
|
|
Loading…
Reference in New Issue