From e2876a56565190527979c4fcfac7929a366f96eb Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 17 Dec 2024 12:30:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E8=B0=83=E8=AF=95=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E7=BB=84=E4=BB=B6=E7=8A=B6=E6=80=81=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【【接口测试】Jmx文件导入后条件控制器步骤一直显示“测试中”】 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001034154 --- .../automation/scenario/EditApiScenario.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 6384fcdfe0..61676c582d 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -1395,11 +1395,24 @@ export default { this.stopDebug = 'stop'; this.messageWebSocket.close(); this.reload(); + if (this.currentScenario && this.currentScenario.scenarioDefinition) { + this.recursiveTesting(this.currentScenario.scenarioDefinition); + } if (this.$refs.maximizeScenario) { 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() { this.debug = false; this.saved = true;