JMeter Processors
JMeter Processors
Processors modify request data before it is sent to the server or process server responses after they are received. JMeter element Processor are used to process something (request, custom operations, response) before and after the sampler (request). It basically affect the response time for the request.
There are two types of processors in JMeter
- Pre-Processor
- Post- Processor
Pre-Processor
Pre-processor are executed before the request is sent to the server. Pre-Processor elements is executed before the sampler and can be used for precondition setup. If a Pre-Processor is added to a test plan, then it will execute just before to that sampler element running. A Pre-Processor is most often used to adjust a Sample Request just before it runs.
Some of the available Pre-Processors in JMeter are as follows:
- Bean shell PreProcessor
- BSF PreProcessor
- JDBC PreProcessor
- JSR223 PreProcessor
- User Parameters
Post-Processor
Post-processors are executed after the request is sent to the server. Post-Processor elements is executed after the sampler and can be used for post condition response. If a Pre-Processor is added to a test plan, then it will be executed after response has arrived. A Post-Processor is often used to find out something from response for some actions. These action may be some time to validate response or to extract something and process.
Some of the available Post-Processors in JMeter are as follows:
- JDBC PostProcessor
- BSF PostProcessor
- CSS/JQuery Extractor
- BeanShell PostProcessor
- Debug PostProcessor
- XPath Extractor
- JSON Extractor