add_jsr223_postprocessor
Add a JSR223 postprocessor to run a script after a sampler or thread group, enabling custom assertions and data extraction in JMeter test plans.
Instructions
Add a JSR223 PostProcessor under an HTTP sampler (or a Thread Group, to apply to every sampler in it), running a script after 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 PostProcessor | |
| planId | Yes | ||
| script | Yes | ||
| parentId | Yes | ||
| parameters | No | ||
| scriptLanguage | No | groovy |