八.jmeter代码学习, Arguments【持续更新】

Class Arguments

java.lang.Object
  org.apache.jmeter.testelement.AbstractTestElement
      org.apache.jmeter.config.ConfigTestElement
          org.apache.jmeter.config.Arguments
Field Summary
static String

ARGUMENTS
          The name of the property used to store the arguments.

//存储参数

 

Fields inherited from class org.apache.jmeter.config.ConfigTestElement
PASSWORD, USERNAME

 

Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTSENABLEDGUI_CLASSNAMETEST_CLASS

 

Constructor Summary
Arguments() 
          Create a new Arguments object with no arguments.

 

Method Summary
 voidaddArgument(Argument arg) 
          Add a new argument.
 voidaddArgument(String name, String value) 
          Add a new argument with the given name and value.
 voidaddArgument(String name, String value, String metadata) 
          Add a new argument with the given name, value, and metadata.
 voidaddEmptyArgument() 
          Add a new empty argument to the list.
 voidclear() 
          Clear the arguments.
 ArgumentgetArgument(int row) 
          Get a single argument.
 intgetArgumentCount() 
          Get the number of arguments in the list.
 CollectionPropertygetArguments() 
          Get the arguments.
 Map<String,String>getArgumentsAsMap() 
          Get the arguments as a Map.
 PropertyIteratoriterator() 
          Get a PropertyIterator of the arguments.
 voidremoveAllArguments() 
          Remove all arguments from the list.
 voidremoveArgument(Argument arg) 
          Remove the specified argument from the list.
 voidremoveArgument(int row) 
          Remove the specified argument from the list.
 voidremoveArgument(String argName) 
          Remove the argument with the specified name.
 voidsetArguments(List<Argument> arguments) 
          Set the list of arguments.
 StringtoString() 
          Create a string representation of the arguments.

转载于:https://my.oschina.net/u/571166/blog/211909

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值