SlideShare a Scribd company logo
JMeter Post-Processors
JMETER PROCESSORS
1
JMeter Processors are utilized to transform the
Samplers in their scope. There are two types of
processors in JMeter as JMeter Post-processors
and JMeter Pre-processors. In this presentation,
we’ll go through post-processors.
JMeter Post-processors are taking actions after
the Sampler is done with its request. You can get
the response or gather data into a variable for
later use. It is up to your scenario.
JMETER POST-
PROCESSORS
2
 Regular Expression Extractor,
 CSS/jQuery Extractor,
 xPath Extractor,
 Result Status Action Handler,
 BeanShell Post-processor,
 JSR223 Post-processor,
 JDBC Post-processor,
 JSON Extractor,
 Boundary Extractor
REGULAR EXPRESSION
EXTRACTOR
3
Regular Expression Extractor is one of the most
helpful JMeter Post-processors in pattern
matching. We are using it for the matching pattern
on contents, values, and expression. The use of
the regular expression is to extract the data from
the responses in JMeter. It is also used in
capturing dynamic value from the response.
For example, If we want to extract dynamic value
from the Google page, the regular expression
extractor plays its role from extracting that
information from the page.
REGULAR EXPRESSION
EXTRACTOR
4
Refer to below steps for Regular Expression
Extractor:
 Go to Thread Group
 Add new Sampler
 Right-click on Sampler
 Click on Add
 Click on Post Processors
 Click on Regular Expression Extractor
REGULAR EXPRESSION
EXTRACTOR
5
REGULAR EXPRESSION
EXTRACTOR
6
Now you can find below control-panel with
following fields;
 Apply to: It defines where you can apply
extractor.
 The possibilities are
 Main sample and sub-samples
 Main sample only
 Sub-samples only
 JMeter Variable
REGULAR EXPRESSION
EXTRACTOR
7
Field to check: It defines the field of the sampler,
which has to be check.
The possibilities are
 Body
 Body (Escaped)
 Body as a Document
 Response Headers
 Request Headers
 URL
 Response Code
 Response message
REGULAR EXPRESSION
EXTRACTOR
8
 Reference name: Variable name where results
need to be saved.
 Regular Expression: It is a sequence of
characters that defines the search pattern
 Template: It is used to create the string from
the found matches.
 Match: It identifies which matches we can use
for the further process.
 Default value: When the regex does not
match, in such case variable will be set to the
default value.
REGULAR EXPRESSION
EXTRACTOR
9
CSS/JQUERY
EXTRACTOR
10
CSS/jQuery Extractor is used to extract the values
from the response. It uses pre-defined syntax for
extracting the element’s value from the web page
and then storing same values into created
variables. Moreover, this extractor can be used
with the request for extracting matching values
from the responses.
For example; You can use the commonly-
accepted syntax of CSS/jQuery extractor for
extracting elements value from any Google web
page and then can store that value in a created
variable. Now you can use that variable name in
next HTTP Request with the Path field for visiting
the link which is stored in the created variable.
CSS/JQUERY
EXTRACTOR
11
Here you can find steps:
 Go to Thread Group
 Add new Sampler
 Right-click on Sampler
 Click on Add
 Click on Post Processors
 Click on CSS/jQuery Extractor
CSS/JQUERY
EXTRACTOR
12
CSS/JQUERY
EXTRACTOR
13
Now you are able to find below control-panel of
CSS/jQuery Extractor
 Apply To: This can be useful to define matches
need to apply on which sample
 The possibilities are
 Main sample and sub-samples
 Main sample only
 Sub-samples only
 JMeter Variable
CSS/JQUERY
EXTRACTOR
14
 CSS/jQuery Extractor Implementation: It supports
these two: (“JSoup(default)” and “Jodd-Lagarto”)
and if the selector is set to empty, the default
implementation will be used.
 Reference Name: Name of the variable where the
result will store.
 CSS/jQuery Expression: It is a selector which uses
pre-defined syntax for extracting element values.
 Attribute: It specifies the attribute of the element
that needs to be extracted with the help of a
selector.
 Match No. (0 for Random): It indicates which match
needs to be used.
 Default value: Reference variable will be set to the
default value if no match found.
CSS/JQUERY
EXTRACTOR
15
XPATH EXTRACTOR
16
XPath Extractor comes into play when Regular
expression extractor is not able to extract the
information. To use this XPath Extractor, first of all,
you need to add it to the Request sampler. And now
can use XPath Tester to extract any value from HTML
response and validate same value using XPath
extractor.
For example, you want to validate the title of Google
homepage, now extract the value of title from Sampler
response using XPath Tester and then store it using
Reference name. Now can validate the title using
XPath extractor.
XPATH EXTRACTOR
17
Having difficulty with the extraction of information?
Don’t worry be happy and follow the below steps:
 Go to Thread Group
 Add new Sampler
 Right-click on Sampler
 Click on Add
 Click on Post Processor
 Click on XPath Extractor
XPATH EXTRACTOR
18
Now you can see below Control-Panel with following
fields:
 Reference Name: JMeter variable name in which
result will be stored.
 XPath Query: You can understand it as element
query in XPath language and can return more than
one match.
 Default Value: It returned when no match found. It
is also returned when the node has no value and
fragment option is not selected.
CSS/JQUERY
EXTRACTOR
19
RESULT STATUS ACTION
HANDLER
20
Result Status Action Handler allows the user to stop
the thread or whole test according to sampler result.
You have different choices here, and of course, you
can choose from these, action be taken if in any case
there is sampler error and this error can happen
because of sample failed itself or assertion failed.
For example, you use assertion of 200 response code
but because of slow internet connection Google page
is not able to load and got other numbers in response
code, and you have used “Stop Thread” option, now
test will stop here itself with the failed result.
RESULT STATUS ACTION
HANDLER
21
Want to apply constraints for your sampler? Here you
go:
 Go to Thread Group
 Add new Sampler
 Right-click on Sampler
 Click on Add
 Click on Post Processors
 Click on Result Status Action Handler
RESULT STATUS ACTION
HANDLER
22
Now you can find below Control-Panel with following
possible choices;
 Continue: This option ignores the error and
continues the test.
 Start next thread loop: It does not execute the test
for current iteration when it found an error and
restarts the loop on next iteration.
 Stop Thread: In this option current thread exits.
 Stop Test: In this option, the whole test is stopped
at the end of any current sample.
 Stop Test Now: The entire test is stopped here.
Any current samplers are interrupted if possible.
RESULT STATUS ACTION
HANDLER
23
The BeanShell PostProcessor are mainly used in
sorting purpose and removing all the unwanted
characters like ‘[]’ and ‘,’. This post-processor will act
as a filter for you.
Want to use this filter at your end? Then please follow
below path:
 Go to Thread Group
 Add new Sampler
 Right-click on Sampler
 Click on Add
 Click on Post Processors
 Click on BeanShell PostProcessor
CSS/JQUERY
EXTRACTOR
24
BEANSHELL
POSTPROCESSOR
25
Now after adding BeanShell PostProcessor, I will
name this PostProcessor as ‘Login Filter’. Here at
BeanShell Control-panel, you can see that the script
field contains the code that helps in removing the
unwanted characters from a string.
This string was stored as response data by the Login
sampler. Now I will fetch the string from login sampler
using the function getResponseDataAsString() of the
prev variable. Next, I will use the replace() method of
the String class to remove ‘[]’ and ‘,’ characters from
the string.
Now, will store the filtered string in the “vars” variable
and print this final string value.
BEANSHELL
POSTPROCESSOR
26
JSON EXTRACTOR
27
JSON Extractor in Jmeter helps you to use the JSON-
PATH syntax to extract data from JSON
responses. This post-processor is very much similar to
Regular Expression Extractor.
You need to use this post-processor with Sampler that
has a response. It is one of the very easy ways to
extractor from text content. You can extract
conditional data and multiple data as well with the help
of this extractor.
For Example, you can extractor multiple values from a
single document using JSONPath syntax, now
suppose you want to extract all cites name from
Historical Places web page, and here you can use
JSONPath syntax to extract all the values and can
store it in the created variable.
JSON EXTRACTOR
28
Want to try it with your sampler? Then follow me:
 Go to Thread Group
 Add new Sampler
 Right click on Sampler
 Click on Add
 Click on Post Processors
 Click on JSON Extractor
JSON EXTRACTOR
29
JSON EXTRACTOR
30
Now, you can see below Control Panel with the
following fields;
Apply To: This can be useful to define matches need
to apply on which sample.
The possibilities are:
 Main sample and sub-samples
 Main sample only
 Sub-samples only
 JMeter Variable
JSON EXTRACTOR
31
 Variable names: Name of the variable where the
result will store.
 JSON Path expressions: Expressions which were
used to extract content from the response.
 Match No. (0 for Random): It indicates which match
needs to be used.
 Compute concatenation var (suffix_ALL): It is used
for the concatenation of all extracted values.
 Default value: Reference variable will be set to the
default value if no match found.
JSON EXTRACTOR
32
BOUNDARY EXTRACTOR
33
The Boundary extractor allows you to extract values
from server response with the help of left and right
boundaries.
Like all other post-processors, this will also execute
after Sampler in its scope, it will test the boundaries
and then extract the requested values, after this, it will
store the value in the given variable name.
For example, you want to extract cites name from
Historical Places web page, and you know that city
name data surrounded by ‘city:{’ from the left and ‘}’
from the right, so these values need to use in left and
right boundaries. And extracted values will store in a
created variable.
BOUNDARY EXTRACTOR
34
Here are the steps that will help you with the process
of adding Boundary Extractor:
 Go to Thread Group
 Add new Sampler
 Right click on Sampler
 Click on Add
 Click on Post Processors
 Click on Boundary Extractor
BOUNDARY EXTRACTOR
35
BOUNDARY EXTRACTOR
36
PARAMETERS
37
 Name: It is the name of an element that will display
in the tree.
 Apply to: It defines match needs to apply on which
sample.
 Field to Check: It defines the part of the response,
which needs to be checked.
 Name of the created variable: The name of the
variable in which the result is going to store.
PARAMETERS
38
 Left Boundary: Here you can define the left
boundary value for the string.
 Right Boundary: Here you can define the right
boundary value for the string.
 Match No. (0 for Random): It defines which match
to use.
 Default Value: It defines the value which needs to
be set if no match found.
JSR223 POST-PROCESSOR
39
JSR223 PostProcessor allows you to apply JSR223
script code after taking a sample. Scripts here have
already compiled and it brings significant performance
boost.
Before invoking the script, some variables are already
set so, that it can be used directly.
It allows more control over on how extraction took
place from the response and how it going to store in
variables.
JSR223 POST-PROCESSOR
40
For example, you want to extract value from the
response or from User Defined Variable, now you
need to use:
vars.get(“variable_name”);
//to read or get variable
def var = vars.get(“variable_name”);
//to store value in variable
vars.put(“my_var”, var);
//to display value
JSR223 POST-PROCESSOR
41
Reach out here to use this post-processor:
 Go to Thread Group
 Add new Sampler
 Right click on Sampler
 Click on Add
 Click on Post Processors
 Click on JSR223 PostProcessor
JSR223 POST-PROCESSOR
42
JSR223 POST-PROCESSOR
43
JDBC POSTPROCESSOR
44
JDBC Post-processor enables you to run SQL
statements just after a sample has run. It can be
helpful for you to execute queries against any table for
getting the required information and also helpful in
case JDBC Sample changes some data during
sample run and you want to restore the state.
For example, you want to fetch some data from a
table, now select Query Type as “Select Statement”
and write SQL Query in Query field. And also enter all
variable name in “Variable names” field so that it can
return data with respect variable names. You can also
enter multiple variable names separated by a comma.
JDBC POSTPROCESSOR
45
You can find below steps for adding this
PostProcessor in your sampler.
 Go to Thread Group
 Add new Sampler
 Right Click on Sampler
 Click on Add
 Click on Post Processors
 Click on JDBC PostProcessor
JDBC POSTPROCESSOR
46
JDBC POSTPROCESSOR
47
JDBC POSTPROCESSOR
48
JDBC POSTPROCESSOR
49
50
Hope this article will be helpful for you!
You can also try our lovely product Loadium.
Stay tuned!
THANK YOU

More Related Content

PDF
Day1 JMeter_training_overview
PPTX
Perofrmance testing and apache jmeter
PDF
JMeter - Performance testing your webapp
PPTX
"Introduction to JMeter" @ CPTM 3rd Session
PDF
Performance testing with JMeter
PDF
PDF
Automation - Apache JMeter
PPTX
Performance Testing using Jmeter and Capacity Testing
Day1 JMeter_training_overview
Perofrmance testing and apache jmeter
JMeter - Performance testing your webapp
"Introduction to JMeter" @ CPTM 3rd Session
Performance testing with JMeter
Automation - Apache JMeter
Performance Testing using Jmeter and Capacity Testing

What's hot (20)

PPTX
Perfromane Test Tool jmeter
PPT
Performance testing and reporting with JMeter
PPTX
Using Jenkins and Jmeter to build a scalable Load Testing solution
PPTX
Performance testing with Apache JMeter
PPTX
Load testing with J meter
DOC
Jmeter interviewquestions
PPTX
Load testing jmeter
PPTX
Performance testing using jmeter
PPTX
Performance testing using Jmeter for apps which needs authentication
PDF
Apache Jmeter 3.2 Performance & Load Testing 2017
PPTX
What Is JMeter?
PDF
Using JMeter and Google Analytics for Software Performance Testing
PPTX
How we can measure server performance using jmeter?
PPT
Performance testing and_reporting_with_j_meter by Le Van Nghi
PPTX
Presentation on Apache Jmeter
PDF
Introduction to jmeter
PPTX
Introduction to JMeter
PPTX
How to Simplify Load Testing: JMeter and Beyond
PDF
Performance testing with jmeter
Perfromane Test Tool jmeter
Performance testing and reporting with JMeter
Using Jenkins and Jmeter to build a scalable Load Testing solution
Performance testing with Apache JMeter
Load testing with J meter
Jmeter interviewquestions
Load testing jmeter
Performance testing using jmeter
Performance testing using Jmeter for apps which needs authentication
Apache Jmeter 3.2 Performance & Load Testing 2017
What Is JMeter?
Using JMeter and Google Analytics for Software Performance Testing
How we can measure server performance using jmeter?
Performance testing and_reporting_with_j_meter by Le Van Nghi
Presentation on Apache Jmeter
Introduction to jmeter
Introduction to JMeter
How to Simplify Load Testing: JMeter and Beyond
Performance testing with jmeter
Ad

Similar to JMeter Post-Processors (20)

PPT
TDD And Refactoring
PPT
JavaScripttttttttttttttttttttttttttttttttttttttt.ppt
PPTX
Lecture - 3 Variables-data type_operators_oops concept
PDF
CIS 1403 lab 3 functions and methods in Java
PPT
Chapter 7 - Defining Your Own Classes - Part II
PPT
6) debugging and testing
PPT
Java căn bản - Chapter7
PPTX
Software testing
PPTX
CJP Unit-1 contd.pptx
PPTX
3 Ways of Debugging JMeter Scripts
PPTX
Struts 2
PPTX
Intro To Unit and integration Testing
PDF
Java 17
PDF
React table tutorial use filter (part 2)
PPT
PPT
Md04 flow control
PPTX
Java Unit Test - JUnit
PPTX
Unit 2-data types,Variables,Operators,Conitionals,loops and arrays
PPT
How to ace your .NET technical interview :: .Net Technical Check Tuneup
PDF
OLT open script
TDD And Refactoring
JavaScripttttttttttttttttttttttttttttttttttttttt.ppt
Lecture - 3 Variables-data type_operators_oops concept
CIS 1403 lab 3 functions and methods in Java
Chapter 7 - Defining Your Own Classes - Part II
6) debugging and testing
Java căn bản - Chapter7
Software testing
CJP Unit-1 contd.pptx
3 Ways of Debugging JMeter Scripts
Struts 2
Intro To Unit and integration Testing
Java 17
React table tutorial use filter (part 2)
Md04 flow control
Java Unit Test - JUnit
Unit 2-data types,Variables,Operators,Conitionals,loops and arrays
How to ace your .NET technical interview :: .Net Technical Check Tuneup
OLT open script
Ad

Recently uploaded (20)

PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Autodesk AutoCAD Crack Free Download 2025
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
Digital Systems & Binary Numbers (comprehensive )
Design an Analysis of Algorithms I-SECS-1021-03
wealthsignaloriginal-com-DS-text-... (1).pdf
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Odoo Companies in India – Driving Business Transformation.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
CHAPTER 2 - PM Management and IT Context
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Autodesk AutoCAD Crack Free Download 2025
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
iTop VPN Free 5.6.0.5262 Crack latest version 2025
17 Powerful Integrations Your Next-Gen MLM Software Needs
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
Monitoring Stack: Grafana, Loki & Promtail
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev

JMeter Post-Processors

  • 2. JMETER PROCESSORS 1 JMeter Processors are utilized to transform the Samplers in their scope. There are two types of processors in JMeter as JMeter Post-processors and JMeter Pre-processors. In this presentation, we’ll go through post-processors. JMeter Post-processors are taking actions after the Sampler is done with its request. You can get the response or gather data into a variable for later use. It is up to your scenario.
  • 3. JMETER POST- PROCESSORS 2  Regular Expression Extractor,  CSS/jQuery Extractor,  xPath Extractor,  Result Status Action Handler,  BeanShell Post-processor,  JSR223 Post-processor,  JDBC Post-processor,  JSON Extractor,  Boundary Extractor
  • 4. REGULAR EXPRESSION EXTRACTOR 3 Regular Expression Extractor is one of the most helpful JMeter Post-processors in pattern matching. We are using it for the matching pattern on contents, values, and expression. The use of the regular expression is to extract the data from the responses in JMeter. It is also used in capturing dynamic value from the response. For example, If we want to extract dynamic value from the Google page, the regular expression extractor plays its role from extracting that information from the page.
  • 5. REGULAR EXPRESSION EXTRACTOR 4 Refer to below steps for Regular Expression Extractor:  Go to Thread Group  Add new Sampler  Right-click on Sampler  Click on Add  Click on Post Processors  Click on Regular Expression Extractor
  • 7. REGULAR EXPRESSION EXTRACTOR 6 Now you can find below control-panel with following fields;  Apply to: It defines where you can apply extractor.  The possibilities are  Main sample and sub-samples  Main sample only  Sub-samples only  JMeter Variable
  • 8. REGULAR EXPRESSION EXTRACTOR 7 Field to check: It defines the field of the sampler, which has to be check. The possibilities are  Body  Body (Escaped)  Body as a Document  Response Headers  Request Headers  URL  Response Code  Response message
  • 9. REGULAR EXPRESSION EXTRACTOR 8  Reference name: Variable name where results need to be saved.  Regular Expression: It is a sequence of characters that defines the search pattern  Template: It is used to create the string from the found matches.  Match: It identifies which matches we can use for the further process.  Default value: When the regex does not match, in such case variable will be set to the default value.
  • 11. CSS/JQUERY EXTRACTOR 10 CSS/jQuery Extractor is used to extract the values from the response. It uses pre-defined syntax for extracting the element’s value from the web page and then storing same values into created variables. Moreover, this extractor can be used with the request for extracting matching values from the responses. For example; You can use the commonly- accepted syntax of CSS/jQuery extractor for extracting elements value from any Google web page and then can store that value in a created variable. Now you can use that variable name in next HTTP Request with the Path field for visiting the link which is stored in the created variable.
  • 12. CSS/JQUERY EXTRACTOR 11 Here you can find steps:  Go to Thread Group  Add new Sampler  Right-click on Sampler  Click on Add  Click on Post Processors  Click on CSS/jQuery Extractor
  • 14. CSS/JQUERY EXTRACTOR 13 Now you are able to find below control-panel of CSS/jQuery Extractor  Apply To: This can be useful to define matches need to apply on which sample  The possibilities are  Main sample and sub-samples  Main sample only  Sub-samples only  JMeter Variable
  • 15. CSS/JQUERY EXTRACTOR 14  CSS/jQuery Extractor Implementation: It supports these two: (“JSoup(default)” and “Jodd-Lagarto”) and if the selector is set to empty, the default implementation will be used.  Reference Name: Name of the variable where the result will store.  CSS/jQuery Expression: It is a selector which uses pre-defined syntax for extracting element values.  Attribute: It specifies the attribute of the element that needs to be extracted with the help of a selector.  Match No. (0 for Random): It indicates which match needs to be used.  Default value: Reference variable will be set to the default value if no match found.
  • 17. XPATH EXTRACTOR 16 XPath Extractor comes into play when Regular expression extractor is not able to extract the information. To use this XPath Extractor, first of all, you need to add it to the Request sampler. And now can use XPath Tester to extract any value from HTML response and validate same value using XPath extractor. For example, you want to validate the title of Google homepage, now extract the value of title from Sampler response using XPath Tester and then store it using Reference name. Now can validate the title using XPath extractor.
  • 18. XPATH EXTRACTOR 17 Having difficulty with the extraction of information? Don’t worry be happy and follow the below steps:  Go to Thread Group  Add new Sampler  Right-click on Sampler  Click on Add  Click on Post Processor  Click on XPath Extractor
  • 19. XPATH EXTRACTOR 18 Now you can see below Control-Panel with following fields:  Reference Name: JMeter variable name in which result will be stored.  XPath Query: You can understand it as element query in XPath language and can return more than one match.  Default Value: It returned when no match found. It is also returned when the node has no value and fragment option is not selected.
  • 21. RESULT STATUS ACTION HANDLER 20 Result Status Action Handler allows the user to stop the thread or whole test according to sampler result. You have different choices here, and of course, you can choose from these, action be taken if in any case there is sampler error and this error can happen because of sample failed itself or assertion failed. For example, you use assertion of 200 response code but because of slow internet connection Google page is not able to load and got other numbers in response code, and you have used “Stop Thread” option, now test will stop here itself with the failed result.
  • 22. RESULT STATUS ACTION HANDLER 21 Want to apply constraints for your sampler? Here you go:  Go to Thread Group  Add new Sampler  Right-click on Sampler  Click on Add  Click on Post Processors  Click on Result Status Action Handler
  • 23. RESULT STATUS ACTION HANDLER 22 Now you can find below Control-Panel with following possible choices;  Continue: This option ignores the error and continues the test.  Start next thread loop: It does not execute the test for current iteration when it found an error and restarts the loop on next iteration.  Stop Thread: In this option current thread exits.  Stop Test: In this option, the whole test is stopped at the end of any current sample.  Stop Test Now: The entire test is stopped here. Any current samplers are interrupted if possible.
  • 24. RESULT STATUS ACTION HANDLER 23 The BeanShell PostProcessor are mainly used in sorting purpose and removing all the unwanted characters like ‘[]’ and ‘,’. This post-processor will act as a filter for you. Want to use this filter at your end? Then please follow below path:  Go to Thread Group  Add new Sampler  Right-click on Sampler  Click on Add  Click on Post Processors  Click on BeanShell PostProcessor
  • 26. BEANSHELL POSTPROCESSOR 25 Now after adding BeanShell PostProcessor, I will name this PostProcessor as ‘Login Filter’. Here at BeanShell Control-panel, you can see that the script field contains the code that helps in removing the unwanted characters from a string. This string was stored as response data by the Login sampler. Now I will fetch the string from login sampler using the function getResponseDataAsString() of the prev variable. Next, I will use the replace() method of the String class to remove ‘[]’ and ‘,’ characters from the string. Now, will store the filtered string in the “vars” variable and print this final string value.
  • 28. JSON EXTRACTOR 27 JSON Extractor in Jmeter helps you to use the JSON- PATH syntax to extract data from JSON responses. This post-processor is very much similar to Regular Expression Extractor. You need to use this post-processor with Sampler that has a response. It is one of the very easy ways to extractor from text content. You can extract conditional data and multiple data as well with the help of this extractor. For Example, you can extractor multiple values from a single document using JSONPath syntax, now suppose you want to extract all cites name from Historical Places web page, and here you can use JSONPath syntax to extract all the values and can store it in the created variable.
  • 29. JSON EXTRACTOR 28 Want to try it with your sampler? Then follow me:  Go to Thread Group  Add new Sampler  Right click on Sampler  Click on Add  Click on Post Processors  Click on JSON Extractor
  • 31. JSON EXTRACTOR 30 Now, you can see below Control Panel with the following fields; Apply To: This can be useful to define matches need to apply on which sample. The possibilities are:  Main sample and sub-samples  Main sample only  Sub-samples only  JMeter Variable
  • 32. JSON EXTRACTOR 31  Variable names: Name of the variable where the result will store.  JSON Path expressions: Expressions which were used to extract content from the response.  Match No. (0 for Random): It indicates which match needs to be used.  Compute concatenation var (suffix_ALL): It is used for the concatenation of all extracted values.  Default value: Reference variable will be set to the default value if no match found.
  • 34. BOUNDARY EXTRACTOR 33 The Boundary extractor allows you to extract values from server response with the help of left and right boundaries. Like all other post-processors, this will also execute after Sampler in its scope, it will test the boundaries and then extract the requested values, after this, it will store the value in the given variable name. For example, you want to extract cites name from Historical Places web page, and you know that city name data surrounded by ‘city:{’ from the left and ‘}’ from the right, so these values need to use in left and right boundaries. And extracted values will store in a created variable.
  • 35. BOUNDARY EXTRACTOR 34 Here are the steps that will help you with the process of adding Boundary Extractor:  Go to Thread Group  Add new Sampler  Right click on Sampler  Click on Add  Click on Post Processors  Click on Boundary Extractor
  • 38. PARAMETERS 37  Name: It is the name of an element that will display in the tree.  Apply to: It defines match needs to apply on which sample.  Field to Check: It defines the part of the response, which needs to be checked.  Name of the created variable: The name of the variable in which the result is going to store.
  • 39. PARAMETERS 38  Left Boundary: Here you can define the left boundary value for the string.  Right Boundary: Here you can define the right boundary value for the string.  Match No. (0 for Random): It defines which match to use.  Default Value: It defines the value which needs to be set if no match found.
  • 40. JSR223 POST-PROCESSOR 39 JSR223 PostProcessor allows you to apply JSR223 script code after taking a sample. Scripts here have already compiled and it brings significant performance boost. Before invoking the script, some variables are already set so, that it can be used directly. It allows more control over on how extraction took place from the response and how it going to store in variables.
  • 41. JSR223 POST-PROCESSOR 40 For example, you want to extract value from the response or from User Defined Variable, now you need to use: vars.get(“variable_name”); //to read or get variable def var = vars.get(“variable_name”); //to store value in variable vars.put(“my_var”, var); //to display value
  • 42. JSR223 POST-PROCESSOR 41 Reach out here to use this post-processor:  Go to Thread Group  Add new Sampler  Right click on Sampler  Click on Add  Click on Post Processors  Click on JSR223 PostProcessor
  • 45. JDBC POSTPROCESSOR 44 JDBC Post-processor enables you to run SQL statements just after a sample has run. It can be helpful for you to execute queries against any table for getting the required information and also helpful in case JDBC Sample changes some data during sample run and you want to restore the state. For example, you want to fetch some data from a table, now select Query Type as “Select Statement” and write SQL Query in Query field. And also enter all variable name in “Variable names” field so that it can return data with respect variable names. You can also enter multiple variable names separated by a comma.
  • 46. JDBC POSTPROCESSOR 45 You can find below steps for adding this PostProcessor in your sampler.  Go to Thread Group  Add new Sampler  Right Click on Sampler  Click on Add  Click on Post Processors  Click on JDBC PostProcessor
  • 51. 50 Hope this article will be helpful for you! You can also try our lovely product Loadium. Stay tuned! THANK YOU