Bug 51128 - Feature request: JMeter lacks general pre-processor for POST-data
Summary: Feature request: JMeter lacks general pre-processor for POST-data
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.5
Hardware: All All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2011-04-27 17:57 UTC by Andrej van der Zee
Modified: 2011-09-17 15:34 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Andrej van der Zee 2011-04-27 17:57:16 UTC
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.