The word ‘Pre’ denotes ‘Prior’ and ‘Processor’ denotes ‘Execution’, hence ‘Pre Processor’ means something that is executed before. In JMeter, there are some elements which execute before the parent element. These elements help to fetch data from a database, set a timeout between sampler execution, modify the settings of a sampler request just before it runs or update variables that aren’t extracted from the response etc. Such JMeter elements are called Pre Processor elements.
If a sampler has a Pre Processor as its child element then the Pre Processor will execute just prior to that sampler. The execution sequence will be like this:
Pre Processor => Sampler => Post Processor
Possible Parent element(s) of Pre Processor in JMeter:
You can add a Pre Processor under the following elements:
- Test Plan
- Thread Group
- Test Fragment
- Sampler
- Logic Controller
- Non-Test Element
Possible Child Element(s):
- NA
You can not add any element under a ‘Pre processor’. Hence it does not have any child element.
Following is the list of available Pre Processors:
- JSR223 PreProcessor
- User Parameters
- HTML Link Parser
- HTTP URL Re-writing Modifier
- JDBC PreProcessor
- RegEx User Parameters
- Sample Timeout
- BeanShell PreProcessor
You may be interested:
- Performance Testing Tutorial
- Performance Engineering Tutorial
- Micro Focus LoadRunner Tutorial
- NeoLoad Tutorial