jmetervelocityscripting-languagejsr223apache-velocity

JMeter add velocity language to JSR 223 Sampler


I want to use velocity language as Scripting language in JMeter's JSR 223 Sampler.

According to the list velocity can be used in JSR223,

According to the answer velocity should be added to JMeter classpath for discovery of available scripting engines.

How can I add velocity as a Scripting engine in JMeter?


Solution

  • Download new velocity engine scripting version 2.0 in order to support scripting engine.

    Put velocity-engine-scripting-2.0.jar in JMeter's lib folder.

    When JMeter loaded it can find velocity as scripting engine and use it.

    EDIT

    Also add relevant velocity jar(s) as velocity-engine-core-2.0.jar