I Failed to execute velocity JSR233 script in JMeter, I added velocity-engine-core-2.0.jar and velocity-engine-scripting-2.0.jar which include velocity in JSR223 languages list,
(Tried also with latest velocity 2.1 versions <http://velocity.apache.org/download.cgi#engine>) The problem that any text given is ignored, even if I put invalid syntax it doesn't throw any exception (as in other languages), or use vars, log,... It seems that script isn't executed, do I need to add configurations or jars? Or is there some JMeter/Java restrictions for velocity? JMeter library contains velocity dependencies jars slf4j-api-1.7.25.jar commons-lang3-3.8.1.jar and added slf4j-simple-1.7.25.jar Log: 2019-06-05 11:48:05,739 DEBUG o.a.velocity: Initializing Velocity, Calling init()...2019-06-05 11:48:05,739 TRACE o.a.velocity: *****************************2019-06-05 11:48:05,739 DEBUG o.a.velocity: Starting Apache Velocity v2.02019-06-05 11:48:05,739 TRACE o.a.velocity: RuntimeInstance initializing.2019-06-05 11:48:05,741 DEBUG o.a.velocity: Default Properties resource: org/apache/velocity/runtime/defaults/velocity.properties2019-06-05 11:48:05,741 TRACE o.a.v.loader: ResourceManager initializing: class org.apache.velocity.runtime.resource.ResourceManagerImpl2019-06-05 11:48:05,741 DEBUG o.a.velocity: ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader2019-06-05 11:48:05,741 TRACE o.a.v.l.file: FileResourceLoader: initialization starting.2019-06-05 11:48:05,741 DEBUG o.a.v.l.file: FileResourceLoader: adding path '.'2019-06-05 11:48:05,741 TRACE o.a.v.l.file: FileResourceLoader: initialization complete.2019-06-05 11:48:05,741 DEBUG o.a.velocity: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.2019-06-05 11:48:05,741 TRACE o.a.v.loader: Default ResourceManager initialization complete.2019-06-05 11:48:05,741 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Stop2019-06-05 11:48:05,742 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Define2019-06-05 11:48:05,742 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Break2019-06-05 11:48:05,742 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate2019-06-05 11:48:05,742 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Macro2019-06-05 11:48:05,742 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Parse2019-06-05 11:48:05,742 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Include2019-06-05 11:48:05,742 DEBUG o.a.velocity: Loaded System Directive: org.apache.velocity.runtime.directive.Foreach2019-06-05 11:48:05,743 DEBUG o.a.v.parser: Created '20' parsers.2019-06-05 11:48:05,743 TRACE o.a.v.macro: initialization starting.2019-06-05 11:48:05,743 DEBUG o.a.v.macro: "velocimacro.library" is not set. Trying default library: VM_global_library.vm2019-06-05 11:48:05,743 DEBUG o.a.v.macro: Default library not found.2019-06-05 11:48:05,743 DEBUG o.a.v.macro: allowInline = true: VMs can be defined inline in templates2019-06-05 11:48:05,743 DEBUG o.a.v.macro: allowInlineToOverride = false: VMs defined inline may NOT replace previous VM definitions2019-06-05 11:48:05,743 DEBUG o.a.v.macro: allowInlineLocal = false: VMs defined inline will be global in scope if allowed.2019-06-05 11:48:05,744 DEBUG o.a.v.macro: autoload off: VM system will not automatically reload global library macros2019-06-05 11:48:05,744 TRACE o.a.v.macro: Velocimacro: initialization complete.2019-06-05 11:48:05,744 TRACE o.a.velocity: RuntimeInstance successfully initialized. First asked: https://stackoverflow.com/questions/56456881/jmeter-velocity-jsr223-script-isnt-executed <https://stackoverflow.com/questions/56456881/jmeter-velocity-jsr223-script-isnt-executed?noredirect=1#comment99506753_56456881>