首先摘抄一段官方文档的话: The following BeanShell variables are set up for use by the script: log - (Logger) - can be used to write to the log file ctx - (JMeterContext) - gives access to the context vars - (JMeterVariables) - gives read/write access to variable