fix: 新版本postman导入脚本类型不匹配 (#1809)
Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com> Co-authored-by: BugKing <wangzhen@fit2cloud.com>
This commit is contained in:
parent
f16ef71e93
commit
cd372cf53c
|
@ -67,7 +67,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
|
|||
if (StringUtils.isNotBlank(scriptStr)) {
|
||||
MsJSR223PreProcessor jsr223PreProcessor = new MsJSR223PreProcessor();
|
||||
jsr223PreProcessor.setName("JSR223PreProcessor");
|
||||
jsr223PreProcessor.setScriptLanguage("javascript");
|
||||
jsr223PreProcessor.setScriptLanguage("nashornScript");
|
||||
jsr223PreProcessor.setScript(scriptStr.toString());
|
||||
LinkedList<MsTestElement> hashTree = new LinkedList<>();
|
||||
hashTree.add(jsr223PreProcessor);
|
||||
|
|
Loading…
Reference in New Issue