From d359bbf66f14d3e0761b6d88e8d68363fd71f1f5 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Sat, 17 Sep 2022 13:52:48 +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=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=89=B9=E9=87=8F=E8=BD=AC=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8F=90=E7=A4=BA=E7=8E=AF=E5=A2=83=E6=9C=AA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016636 --user=宋天阳 【接口测试】github#17761,接口自动化-场景批量转性能测试提示环境未配置 https://www.tapd.cn/55049933/s/1244309 --- .../java/io/metersphere/api/service/ApiAutomationService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index b706cf19bd..fb2363feb0 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1752,6 +1752,7 @@ public class ApiAutomationService { StringBuilder builder = new StringBuilder(); for (ApiScenarioWithBLOBs apiScenarioWithBLOBs : scenarios) { try { + apiScenarioEnvService.setScenarioEnv(apiScenarioWithBLOBs, null); boolean haveEnv = apiScenarioEnvService.checkScenarioEnv(apiScenarioWithBLOBs, null); if (!haveEnv) { builder.append(apiScenarioWithBLOBs.getName()).append("; ");