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");

posted @ 2020-04-28 14:46  Tang豆豆  阅读(140)  评论(0编辑  收藏  举报