fix(接口测试): 前后置脚本引用公共脚本执行失败

This commit is contained in:
AgAngle 2024-03-06 18:16:14 +08:00 committed by 刘瑞斌
parent f488ba144f
commit f10740acc7
1 changed files with 5 additions and 1 deletions

View File

@ -86,6 +86,10 @@ public abstract class ScriptProcessorConverter extends MsProcessorConverter<Scri
} }
public static boolean isJSR233(ScriptProcessor scriptProcessor) { public static boolean isJSR233(ScriptProcessor scriptProcessor) {
return !StringUtils.equals(scriptProcessor.getScriptLanguage(), ScriptLanguageType.BEANSHELL.name()); if (scriptProcessor.getEnableCommonScript()) {
return !StringUtils.equals(scriptProcessor.getCommonScriptInfo().getScriptLanguage(), ScriptLanguageType.BEANSHELL.name());
} else {
return !StringUtils.equals(scriptProcessor.getScriptLanguage(), ScriptLanguageType.BEANSHELL.name());
}
} }
} }