问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/45686685/jmeter-add-velocity-language-to-jsr-223-sampler