Beanshell 的一些内置变量

log - the Logger 

Label - the Sampler label

FileName - the file name, if any

Parameters - text from the Parameters field

bsh.args - the parameters, split as described above

SampleResult - pointer to the current SampleResult

ResponseCode = 200

ResponseMessage = "OK"

IsSuccess = true

ctx - JMeterContext

vars - JMeterVariables - e.g. vars.get("VAR1"); vars.put("VAR2","value"); vars.remove("VAR3"); vars.putObject("OBJ1",new Object());

props - JMeterProperties (class java.util.Properties)- e.g. props.get("START.HMS"); props.put("PROP1","1234");

原文地址:https://www.cnblogs.com/merry-0131/p/12794209.html