fix(接口测试): 修复场景步骤最大化移动顺序后调试不显示结果问题
--bug=1013836 --user=赵勇 [接口测试]-新建场景-关联接口case-全屏-选环境-拖拽第一个用例到其他位置-调试没结果 https://www.tapd.cn/55049933/s/1175024
This commit is contained in:
parent
3126c0fc13
commit
e437feee57
|
@ -728,6 +728,7 @@ public class ApiAutomationService {
|
|||
Boolean enable = request.getEnvironmentEnable();
|
||||
String scenarioDefinition = request.getDefinition();
|
||||
JSONObject element = JSON.parseObject(scenarioDefinition, Feature.DisableSpecialKeyDetect);
|
||||
try {
|
||||
Map<String, String> environmentMap = new HashMap<>();
|
||||
if (BooleanUtils.isFalse(enable)) {
|
||||
String envType = request.getEnvironmentType();
|
||||
|
@ -764,6 +765,9 @@ public class ApiAutomationService {
|
|||
ElementUtil.dataSetDomain(element.getJSONArray("hashTree"), config);
|
||||
}
|
||||
return JSON.toJSONString(element);
|
||||
} catch (Exception e) {
|
||||
return scenarioDefinition;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -336,6 +336,7 @@
|
|||
@setCookieShare="setCookieShare"
|
||||
@setSampleError="setSampleError"
|
||||
@stop="stop"
|
||||
@sort="sort"
|
||||
@openScenario="openScenario"
|
||||
@runScenario="runDebug"
|
||||
@stopScenario="stop"
|
||||
|
|
|
@ -737,9 +737,10 @@ export default {
|
|||
},
|
||||
allowDrag(draggingNode, dropNode, dropType) {
|
||||
if (dropNode && draggingNode && dropType) {
|
||||
this.sort();
|
||||
this.$emit("sort");
|
||||
this.forceRerender();
|
||||
this.cancelBatchProcessing();
|
||||
|
||||
}
|
||||
},
|
||||
nodeExpand(data) {
|
||||
|
|
Loading…
Reference in New Issue