BeanShell Listener

JMeter – BeanShell Listener

BeanShell Listener is a script-based listener for JMeter. This means that you must use one of the available scripting languages to build the listener logic yourself. It’s usually useful when you need to build logic according to your needs and want to write a special algorithm that JMeter doesn’t provide yet. Using the BeanShell listener you can develop your own algorithm implementation

.JMeter - BeanShell Listener

How is ‘BeanShell Listener’ added?

As you do the following:

  • Choose the right element for the listener you want to add.
  • Plan of Testing Thread Group Controller Sampler
  • Do right-click on the component.
  • Place your cursor over ‘Add’.
  • Place your pointer over “Listener” and select “BeanShell Listener”

What are the ‘BeanShell Listener’ input fields?

There are the following input fields for “BeanShell Listener“:

  • Name: To specify the name of the timer Leave any comment random. Restart the bush. For each conversation, the interpreter: If you select the ‘Yes’ option for this option, a new interpreter will be created.
  • Parameters: Passed as parameters to the BeanShell script. This quality is optional.
  • Text File: A file that contains the BeanShell script to run. The return value of the BeanShell script is used as the listener output.
  • BeanShell Script: The script that houses the listener’s logic.
Scroll to Top