Beanshell related knowledge

beanshell defines variables

Variable definitions are through the java language: variable type variable name = variable name
For example:
String name = "darly";

beanshell output statement

  • Jmeter logs are stored in %JMeter_HOME%\bil\JMeter.log by default. Use log.info("") in the script to
    print the required log information
  • Click the upper right corner in JMeter to open the log window

log.info("kajlkdfjlakjaflkjflka")-output constant
log.info(name);-output variable defined by beanshell
log.info(${name});-output variable defined by Jmeter

Log output 4 levels:

log.debug("");
log.info("")

Guess you like

Origin blog.csdn.net/Mwyldnje2003/article/details/106954217