From e0783b3ec318eeac811bb04a80031dc0a9bf6ff1 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 6 Feb 2023 14:37:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E7=BC=93=E5=AD=98KEY=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/dto/definition/request/ElementUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ElementUtil.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ElementUtil.java index ff9852f175..0548b9cf15 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ElementUtil.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ElementUtil.java @@ -827,6 +827,7 @@ public class ElementUtil { if (StringUtils.isNotEmpty(vo.getScript())) { vo.setScript(StringUtils.replace(vo.getScript(), RunningParamKeys.API_ENVIRONMENT_ID, "\"" + RunningParamKeys.RUNNING_PARAMS_PREFIX + vo.getEnvironmentId() + ".\"")); } + testElement.setProperty("cacheKey", false); testElement.setProperty(TestElement.TEST_CLASS, testElement.getClass().getSimpleName()); testElement.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass(TEST_BEAN_GUI)); String scriptLanguage = vo.getScriptLanguage();