Introduction to Beanshell in Jmeter

Bean Shell official introduction

  • BeanShell is a scripting language that fully complies with the Java grammar specification, and has some of its own grammar and methods
  • BeanShell is a loosely typed scripting language (this is similar to JS)
  • BeanShell is written in Java, a small, free, downloadable, embedded Java source code interpreter, with object scripting language features, a very streamlined interpreter jar file size of 175k
  • BeanShell executes standard Java statements and expressions, and also includes some script commands and syntax

Official website: http://www.BeanShell.org/

 

What Bean Shell does Jmeter have

  • Timer: BeanShell Timer
  • Preprocessor: BeanShell PreProcessor
  • Sampler: BeanShell Sampler
  • Post processor: BeanShell PostProcessor
  • Assertions: BeanShell Assertions
  • Listener: BeanShell Listener

 

Bean Shell commonly used built-in variables

JMeter has many built-in variables in BeanShell. We can interact with JMeter through these variables. We will give examples of their common methods one by one.

 

log

Print the log and write information to the jmeber.log file

 

ctx

Guess you like

Origin blog.csdn.net/yang520java/article/details/114121777