diff --git a/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java b/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java index 3b1647184a..0b94178d65 100644 --- a/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java +++ b/backend/src/main/java/io/metersphere/api/parse/PostmanAbstractParserParser.java @@ -67,7 +67,7 @@ public abstract class PostmanAbstractParserParser extends ApiImportAbstractPa if (StringUtils.isNotBlank(scriptStr)) { MsJSR223PreProcessor jsr223PreProcessor = new MsJSR223PreProcessor(); jsr223PreProcessor.setName("JSR223PreProcessor"); - jsr223PreProcessor.setScriptLanguage("javascript"); + jsr223PreProcessor.setScriptLanguage("nashornScript"); jsr223PreProcessor.setScript(scriptStr.toString()); LinkedList hashTree = new LinkedList<>(); hashTree.add(jsr223PreProcessor);