Пример #1
0
 public Arguments getDefaultParameters() {
   Arguments params = new Arguments();
   params.addArgument(LEVEL_PARAM_NAME, "${level}");
   params.addArgument(DU_PARAM_NAME, "${du}");
   params.addArgument(PARENTS_PARAM_NAME, "${parents}");
   return params;
 }
Пример #2
0
 @Override
 public Arguments getDefaultParameters() {
   Arguments argu = new Arguments();
   argu.addArgument("da", "");
   argu.addArgument("db", "");
   return argu;
 }
Пример #3
0
 /**
  * Provide a list of parameters which this test supports. Any parameter names and associated
  * values returned by this method will appear in the GUI by default so the user doesn't have to
  * remember the exact names. The user can add other parameters which are not listed here. If this
  * method returns null then no parameters will be listed. If the value for some parameter is null
  * then that parameter will be listed in the GUI with an empty value.
  *
  * @return a specification of the parameters used by this test which should be listed in the GUI,
  *     or null if no parameters should be listed.
  */
 @Override
 public Arguments getDefaultParameters() {
   Arguments params = new Arguments();
   params.addArgument(SLEEP_NAME, String.valueOf(DEFAULT_SLEEP_TIME));
   params.addArgument(MASK_NAME, DEFAULT_MASK_STRING);
   params.addArgument(LABEL_NAME, "");
   params.addArgument(RESPONSE_CODE_NAME, RESPONSE_CODE_DEFAULT);
   params.addArgument(RESPONSE_MESSAGE_NAME, RESPONSE_MESSAGE_DEFAULT);
   params.addArgument(SUCCESS_NAME, SUCCESS_DEFAULT);
   params.addArgument(SAMPLER_DATA_NAME, SAMPLER_DATA_DEFAULT);
   params.addArgument(RESULT_DATA_NAME, SAMPLER_DATA_DEFAULT);
   return params;
 }
Пример #4
0
 private Arguments getUnclonedParameters() {
   stopTableEditing();
   @SuppressWarnings("unchecked") // only contains Argument (or HTTPArgument)
   Iterator<HTTPArgument> modelData = (Iterator<HTTPArgument>) tableModel.iterator();
   Arguments args = new Arguments();
   while (modelData.hasNext()) {
     HTTPArgument arg = modelData.next();
     args.addArgument(arg);
   }
   return args;
 }
Пример #5
0
  public Arguments getDefaultParameters() {
    Arguments params = new Arguments();
    conf.setApiUri("tradeorder/cancel/v1");
    String confStr = gson.toJson(conf);
    String handMsg = gson.toJson(headMsg);
    params.addArgument("conf", confStr);
    params.addArgument("handMsg", handMsg);

    params.addArgument("orderSerial", "订单号,由商户生成");
    params.addArgument("accountSerial", "账户编号");
    params.addArgument("sourceApplySerial", "原基金公司订单编号");
    params.addArgument("tradePassword", "交易密码,特殊授权的商户可以不传该字段");
    params.addArgument("remark", "备注");
    return params;
  }
 public Arguments getDefaultParameters() {
   Arguments defaultParameters = new Arguments();
   defaultParameters.addArgument("indexfilesystem.path", "${indexfilesystem.path}");
   defaultParameters.addArgument("resultsDirectory", "${resultsDirectory}");
   return defaultParameters;
 }
Пример #7
0
 @Override
 public Arguments getDefaultParameters() {
   Arguments args = new Arguments();
   args.addArgument(PARAM_STOP_ON_ERROR, "${stopOnError}");
   return args;
 }
Пример #8
0
 /**
  * Adds an argument to the list of arguments for this JavaConfig object. The {@link
  * org.apache.jmeter.protocol.java.sampler.JavaSamplerClient} implementation can access these
  * arguments through the {@link org.apache.jmeter.protocol.java.sampler.JavaSamplerContext}.
  *
  * @param name the name of the argument to be added
  * @param value the value of the argument to be added
  */
 public void addArgument(String name, String value) {
   Arguments args = this.getArguments();
   args.addArgument(name, value);
 }