fix(接口测试): 修复场景调试三方组件状态更新问题
【【接口测试】Jmx文件导入后条件控制器步骤一直显示“测试中”】 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001034154
This commit is contained in:
parent
6897d77918
commit
e2876a5656
|
@ -1395,11 +1395,24 @@ export default {
|
||||||
this.stopDebug = 'stop';
|
this.stopDebug = 'stop';
|
||||||
this.messageWebSocket.close();
|
this.messageWebSocket.close();
|
||||||
this.reload();
|
this.reload();
|
||||||
|
if (this.currentScenario && this.currentScenario.scenarioDefinition) {
|
||||||
|
this.recursiveTesting(this.currentScenario.scenarioDefinition);
|
||||||
|
}
|
||||||
if (this.$refs.maximizeScenario) {
|
if (this.$refs.maximizeScenario) {
|
||||||
this.$refs.maximizeScenario.reload();
|
this.$refs.maximizeScenario.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
recursiveTesting(arr) {
|
||||||
|
arr.forEach((item) => {
|
||||||
|
item.testing = false; // 更新 `testing` 属性
|
||||||
|
if (Array.isArray(item.hashTree) && item.hashTree.length > 0) {
|
||||||
|
this.recursiveTesting(item.hashTree); // 递归调用
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
handleCommand() {
|
handleCommand() {
|
||||||
this.debug = false;
|
this.debug = false;
|
||||||
this.saved = true;
|
this.saved = true;
|
||||||
|
|
Loading…
Reference in New Issue