public class Arguments extends ConfigTestElement implements java.io.Serializable, java.lang.Iterable<JMeterProperty>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARGUMENTS
The name of the property used to store the arguments.
|
PASSWORD, USERNAMECOMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
Arguments()
Create a new Arguments object with no arguments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(Argument arg)
Add a new argument.
|
void |
addArgument(java.lang.String name,
java.lang.String value)
Add a new argument with the given name and value.
|
void |
addArgument(java.lang.String name,
java.lang.String value,
java.lang.String metadata)
Add a new argument with the given name, value, and metadata.
|
void |
addArgument(java.lang.String name,
java.lang.String value,
java.lang.String metadata,
java.lang.String description)
Add a new argument with the given name, value, metadata and description
|
void |
addEmptyArgument()
Add a new empty argument to the list.
|
void |
clear()
Clear the arguments.
|
Argument |
getArgument(int row)
Get a single argument.
|
int |
getArgumentCount()
Get the number of arguments in the list.
|
CollectionProperty |
getArguments()
Get the arguments.
|
java.util.Map<java.lang.String,java.lang.String> |
getArgumentsAsMap()
Get the arguments as a Map.
|
PropertyIterator |
iterator()
Get a PropertyIterator of the arguments.
|
void |
removeAllArguments()
Remove all arguments from the list.
|
void |
removeArgument(Argument arg)
Remove the specified argument from the list.
|
void |
removeArgument(int row)
Remove the specified argument from the list.
|
void |
removeArgument(java.lang.String argName)
Remove the argument with the specified name.
|
void |
removeArgument(java.lang.String argName,
java.lang.String argValue)
Remove the argument with the specified name and value.
|
void |
setArguments(java.util.List<Argument> arguments)
Set the list of arguments.
|
java.lang.String |
toString()
Create a string representation of the arguments.
|
addConfigElement, addTestElement, expectsModificationaddPropertiesValues, addProperty, addProperty, canRemove, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyfinalize, getClass, notify, notifyAll, wait, wait, waitcloneremovedpublic static final java.lang.String ARGUMENTS
public CollectionProperty getArguments()
public void clear()
clear in interface TestElementclear in class AbstractTestElementpublic void setArguments(java.util.List<Argument> arguments)
arguments - the new argumentspublic java.util.Map<java.lang.String,java.lang.String> getArgumentsAsMap()
public void addArgument(java.lang.String name,
java.lang.String value)
name - the name of the argumentvalue - the value of the argumentpublic void addArgument(Argument arg)
arg - the new argumentpublic void addArgument(java.lang.String name,
java.lang.String value,
java.lang.String metadata)
name - the name of the argumentvalue - the value of the argumentmetadata - the metadata for the argumentpublic void addArgument(java.lang.String name,
java.lang.String value,
java.lang.String metadata,
java.lang.String description)
name - the name of the argumentvalue - the value of the argumentmetadata - the metadata for the argumentdescription - the argument descriptionpublic PropertyIterator iterator()
iterator in interface java.lang.Iterable<JMeterProperty>public java.lang.String toString()
toString in class java.lang.Objectpublic void removeArgument(int row)
row - the index of the argument to removepublic void removeArgument(Argument arg)
arg - the argument to removepublic void removeArgument(java.lang.String argName)
argName - the name of the argument to removepublic void removeArgument(java.lang.String argName,
java.lang.String argValue)
argName - the name of the argument to removeargValue - the value to compare - must not be nullpublic void removeAllArguments()
public void addEmptyArgument()
public int getArgumentCount()
public Argument getArgument(int row)
row - the index of the argument to return.Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.