/** * Add a new empty argument to the list. The new argument will have the * empty string as its name and value, and null metadata. */ public void addEmptyArgument() { addArgument(new Argument("", "", null)); }
@Override public Object clone() { RedisDataSet clonedElement = (RedisDataSet)super.clone(); clonedElement.pool = this.pool; return clonedElement; }
/** * Create a new Argument object. * * @return a new Argument object */ protected Argument makeNewArgument() { return new Argument("", ""); // $NON-NLS-1$ // $NON-NLS-2$ }
/** * 设置传入参数 * 可以设置多个,已设置的参数会显示到Jmeter参数列表中 */ public Arguments getDefaultParameters() { Arguments params = new Arguments(); params.addArgument("inNum", ""); params.addArgument("resultNum", "66"); return params; }
/** * Get the name of the Argument. * * @return the attribute's name */ @Override public String getName() { return getPropertyAsString(ARG_NAME); }
@Override public String toString() { return getUsername() + "=" + getPassword(); //$NON-NLS-1$ } }
private ConfigElement cloneIfNecessary(ConfigElement config) { if (config.expectsModification()) { return config; } return (ConfigElement) config.clone(); } }
@Override public void addTestElement(TestElement parm1) { if (parm1 instanceof ConfigTestElement) { mergeIn(parm1); } }
/** * Gets the Username attribute of the LoginConfig object. * * @return the Username value */ public String getUsername() { return getPropertyAsString(ConfigTestElement.USERNAME); }
/** * Sets the Description attribute of the Argument. * * @param description * the new description */ public void setDescription(String description) { setProperty(DESCRIPTION, description, DFLT_DESCRIPTION); }
/** * Add a new argument with the given name and value. * * @param name * the name of the argument * @param value * the value of the argument */ public void addArgument(String name, String value) { addArgument(new Argument(name, value, null)); }
@Override public Object clone() { RedisDataSet clonedElement = (RedisDataSet)super.clone(); clonedElement.pool = this.pool; return clonedElement; }
/** * Gets the value of the Argument object. * * @return the attribute's value */ public String getValue() { return getPropertyAsString(VALUE); }
/** * {@inheritDoc} */ @Override public void addConfigElement(ConfigElement config) { mergeIn((TestElement) config); }
/** * Gets the Password attribute of the LoginConfig object. * * @return the Password value */ public String getPassword() { return getPropertyAsString(ConfigTestElement.PASSWORD); }
/** * Add a new argument with the given name, value, and metadata. * * @param name * the name of the argument * @param value * the value of the argument * @param metadata * the metadata for the argument */ public void addArgument(String name, String value, String metadata) { addArgument(new Argument(name, value, metadata)); }
/** {@inheritDoc} */ @Override public Object clone(){ CookieManager clone = (CookieManager) super.clone(); clone.initialCookies = initialCookies; clone.cookieHandler = cookieHandler; return clone; }
/** * Gets the Meta Data attribute of the Argument. * * @return the MetaData value */ public String getMetaData() { return getPropertyAsString(METADATA); }
@Override public VariantStorageEngineSampler setQueryGeneratorConfig(String key, String value) { getArguments().addArgument(new Argument(key, value)); return this; }
/** * Gets the Meta Data attribute of the Argument. * * @return the MetaData value */ public String getDescription() { return getPropertyAsString(DESCRIPTION, DFLT_DESCRIPTION); }