码迷,mamicode.com
首页 > Windows程序 > 详细

jmeter常见参数 vars、prev、ctx 、props 类的api

时间:2016-09-06 22:40:05      阅读:1642      评论:0      收藏:0      [点我收藏+]

标签:

 

  • ctx - ( JMeterContext ) - gives access to the context
  • vars - ( JMeterVariables ) - gives read/write access to variables: vars.get(key); vars.put(key,val); vars.putObject("OBJ1",new Object()); vars.getObject("OBJ2");
  • props - (JMeterProperties - class java.util.Properties) - e.g. props.get("START.HMS"); props.put("PROP1","1234");
  • prev - ( SampleResult ) - gives access to the previous SampleResult (if any)
  • sampler - (Sampler)- gives access to the current sampler

ctx 地址:http://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterContext.html

vars 地址:http://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterVariables.html

prev地址:http://jmeter.apache.org/api/org/apache/jmeter/samplers/SampleResult.html

 

其中vars、prev类很常用、api中介绍了一些方法

jmeter常见参数 vars、prev、ctx 、props 类的api

标签:

原文地址:http://www.cnblogs.com/tallme/p/5847321.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!