add_jsr223_preprocessor
Add a JSR223 preprocessor to an HTTP sampler or Thread Group, running a script before each sample to set variables or modify requests.
Instructions
Add a JSR223 PreProcessor under an HTTP sampler (or a Thread Group, to apply to every sampler in it), running a script before the sample. Scripts default to Groovy, which only works when JMeter runs on a compatible Java (17 is the safe choice; the Groovy bundled with JMeter 5.6.x fails on very new Java such as 25+, killing each virtual user on its first script run) - the result carries a "warning" field when this server detects a mismatch. For unique or random data, prefer the built-in functions ${__UUID}, ${__RandomString} and ${__Random}, which need no script at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | JSR223 PreProcessor | |
| planId | Yes | ||
| script | Yes | ||
| parentId | Yes | ||
| parameters | No | ||
| scriptLanguage | No | groovy |