BeanShell PostProcessor is a scripting-based PostProcessor in JMeter. It means that you will need to implement the postprocessor logic by yourself using one of the supported scripting languages. Usually, it is helpful when you need to define logic based on your requirement and want to write some unique algorithm which is not currently provided by JMeter. You can create your own implementation of the algorithm using BeanShell PostProcessor.
How to add ‘BeanShell PostProcessor’ element?
Follow the below steps:
- Select the element where you want to add PostProcessor.
- Right-click on the node
- Hover the mouse on ‘Add’
- Hover the mouse on ‘PostProcessor’
- Click ‘BeanShell PostProcessor’
What are the input fields of ‘BeanShell PostProcessor’?
‘BeanShell PostProcessor’ has the following input fields:
- Name: To provide the name of the timer
- Comments: To provide arbitrary comments (if any)
- Reset bsh.Interpreter before each call: Interpreter will be recreated by selecting the value of this option as ‘Yes’.
- Parameters: Parameters to pass to the BeanShell script. This is an optional attribute.
- Script file: A file containing the BeanShell script to run. The return value is used as a postprocessor output generated by BeanShell script.
- Script: The BeanShell script which contains the PostProcessor Logic.