Post Processor

                      The Post Processors are the test plan elements that are used to perform certain actions after the processing of a sampler request. These post processors are usually used for extracting certain values from the response of a sampler request e.g. we can extract the value of session variables from an HTTP request and pass the session variable's value to the subsequent requests.
How to add a Post Processor in JMeter-
step 1:Right Click on either of Thread Group/Logic Controller
step 2:Hover over 'Add' select 'Post Processors'
step 3:Click on the required Post Processor Element
You can see the same in the following screenshot.
             The post processors in jmeter are beanshell ,BSF,CSS/Jquery .Debug,JDBC,JSON path,Regular expression and Xpath extractor.

Regular Expression Extractor

Regular Expression Extractor is the most frequently used post-processor. It is used to extract values from HTTP response using regular expression and to store the values to a variable. Then the variable can either be used as request parameter to other samplers or can be used for other purposes like assertions, debugging, storing in file etc.
BeanShell PostProcessor
The BeanShell PostProcessor is used to perform some operation using beanshell scripting after a sampler request processing.
CSS/JQuery Extractor
The CSS/JQuery Extractor is used to extract values from HTTP response using CSS or JQuery expressions and then the extracted value is stored in a variable.
XPath Extractor
The XPath Extractor is used to extract values from HTTP response using CSS or JQuery expressions and then the extracted vlaue is stored in a variable
Debug PostProcessor
The Debug PostProcessor is used to create a subSample having properties of previous sampler request, JMeter properties, JMeter variables or system properties.
JSR223 PostProcessor
The JSR223 PostProcessor is used to perform some operation using JSR223 scripting after a sampler request processing.
JDBC PostProcessor
The JDBC PostProcessor is used to execute certain specified SQL queries after a sampler request processing.
JSON Path PostProcessor
The JDBC PostProcessor is used to extract data from JSON response using JSON-Path syntax.
Result Status Action Handler


The Result Status Action Handler is used to stop a thread group or the whole test in case of a specific sampler failure.

No comments:

Post a Comment