zoukankan      html  css  js  c++  java
  • jmeter常见参数 vars、prev、ctx 、props 类的api

    • 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中介绍了一些方法

  • 相关阅读:
    C
    B
    A
    poj1222
    请求转发和重定向
    中文乱码
    Servlet 第一天
    Oracle 锁
    Oracle 包的学习
    初学Linux
  • 原文地址:https://www.cnblogs.com/tallme/p/5847321.html
Copyright © 2011-2022 走看看