From a2b4c6831949e82ee89acf400538bb7e1097f0d9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 14 Dec 2022 11:14:51 +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=85=A8=E9=80=89=E6=9F=90=E4=B8=80=E7=89=88?= =?UTF-8?q?=E6=9C=ACcase=E6=89=A7=E8=A1=8C=E6=97=B6=EF=BC=8C=E4=BC=9A?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=89=80=E6=9C=89=E7=89=88=E6=9C=ACcase?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020794 --user=王孝刚 [BUG]接口定义-CASE处,选择某一版本所有数据批量执行,其他版本的CASE也执行了。 #20584 https://www.tapd.cn/55049933/s/1315522 --- .../io/metersphere/api/dto/automation/RunScenarioRequest.java | 2 ++ .../io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/automation/RunScenarioRequest.java b/api-test/backend/src/main/java/io/metersphere/api/dto/automation/RunScenarioRequest.java index c2bf2dbdc0..096abbdb07 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/automation/RunScenarioRequest.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/automation/RunScenarioRequest.java @@ -53,4 +53,6 @@ public class RunScenarioRequest { private String serialReportId; private Map reportMap; + private String versionId; + } diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml index ceb2e1df66..44d724afd2 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml @@ -836,6 +836,9 @@ and a.protocol = #{request.protocol} + + and t1.version_id =#{request.versionId} +