fix(接口测试): 修复场景调试三方组件状态更新问题

【【接口测试】Jmx文件导入后条件控制器步骤一直显示“测试中”】
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001034154
This commit is contained in:
fit2-zhao 2024-12-17 12:30:01 +08:00 committed by Craftsman
parent 6897d77918
commit e2876a5656
1 changed files with 13 additions and 0 deletions

View File

@ -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;