apache / apache/jmeter

Feature request: JMeter lacks general pre-processor for POST-data

Open
#2,488 0 comments 0 reactions 0 assignees View on GitHub
enhancement os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Andrej van der Zee** ([Bug 51128](https://bz.apache.org/bugzilla//show_bug.cgi?id=51128&redirect=false)):
Modifying POST-bodies before sending to the server can only be done in external scripts like BeanShell. In particular, when you have a template-file that needs values to be substituted (not in the "name=value" format), it becomes messy and one needs to know the JMeter internals with respect to thread-synchronization.

I would expect a pre-processor with regular expressions (and maybe XPath) to enable substitutions in POST-data, local to the running thread. This would make the learning step lower for non-BeanShell people like me, much more user-friendly and less error-prone (thread-synchronization should be hidden by JMeter instead of explicitly handled in an external script).

IMHO, I think JMeter needs a pre-processor with regex/XPath, analog to the existing post-processors with regex/XPath.

Votes in Bugzilla: 1
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.