BeanShell总结

BeanShell内置变量
1 log - the Logger
2 Label - the Sampler label
3 FileName - the file name, if any
4 Parameters - text from the Parameters field
5 args - the parameters, split as described above
6 SampleResult - pointer to the current SampleResult
  sampler - pointer to current Sampler
7 ctx - JMeterContext
8 vars - JMeterVariables - e.g. vars.get("VAR1"); vars.put("VAR2","value"); vars.remove("VAR3"); vars.putObject("OBJ1",new Object());
9 props - JMeterProperties (class java.util.Properties) - e.g. props.get("START.HMS"); props.put("PROP1","1234");
10 OUT - System.out - e.g. OUT.println("message")

猜你喜欢

转载自xiaopeng8236.iteye.com/blog/2174302