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++) {
|
||||
JSONObject item = hashTree.optJSONObject(index);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1278,6 +1278,9 @@ export default {
|
|||
this.stopDebug = 'stop';
|
||||
this.messageWebSocket.close();
|
||||
this.reload();
|
||||
if (this.$refs.maximizeScenario) {
|
||||
this.$refs.maximizeScenario.reload();
|
||||
}
|
||||
}
|
||||
},
|
||||
handleCommand() {
|
||||
|
|
|
@ -222,6 +222,8 @@
|
|||
@suggestClick="suggestClick"
|
||||
@refReload="refReload"
|
||||
@openScenario="openScenario"
|
||||
@runScenario="runScenario"
|
||||
@stopScenario="stopScenario"
|
||||
v-if="selectedTreeNode && selectedNode" />
|
||||
<!-- 请求下还有的子步骤-->
|
||||
<div v-if="selectedTreeNode && selectedTreeNode.hashTree && showNode(selectedTreeNode)">
|
||||
|
@ -241,6 +243,8 @@
|
|||
@suggestClick="suggestClick"
|
||||
@refReload="refReload"
|
||||
@openScenario="openScenario"
|
||||
@runScenario="runScenario"
|
||||
@stopScenario="stopScenario"
|
||||
v-show="
|
||||
selectedTreeNode && selectedNode && stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1
|
||||
" />
|
||||
|
|
Loading…
Reference in New Issue