Get Knowledge from Video instead of Content:

Monday 30 January 2017

JMeter - PostProcessor - "BeanShell PostProcessor"

BeanShell PostProcessor is a scripting-based PostProcessor. 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?
You can follow below steps:
1. Select "Test Plan" or "Thread Group" or "Controller" or "Sampler" node where you want to add PostProcessor.
2. Right-click on the node
3. Mouse hovers "Add"
4. Mouse hovers "PostProcessor"
5. Click "BeanShell PostProcessor"

How to remove "BeanShell PostProcessor" element?
You can follow the below steps:
1. Select "BeanShell PostProcessor" node
2. Right click on "BeanShell PostProcessor" node
3. Click "Remove" (Mouse) or "Delete" button from the keyboard
4. Click "Yes"    

What are the attributes of "BeanShell PostProcessor" element?

"BeanShell PostProcessor" has following attributes:
  • 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.
Next Topic:
Apache JMeter - "JSR223 PostProcessor"

Previous Topic:
Apache JMeter - "Post-Processor" Element

Related Topics:

No comments :

Post a Comment