Class Argument
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.Argument
- All Implemented Interfaces:
Serializable, Cloneable, Searchable, TestElement
- Direct Known Subclasses:
HTTPArgument
Class representing an argument. Each argument consists of a name/value pair,
as well as (optional) metadata.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName used to store the argument's name.static final StringName used to store the argument's description.static final StringName used to store the argument's metadata.static final StringName used to store the argument's value.Fields inherited from interface TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
ConstructorsConstructorDescriptionArgument()Create a new Argument without a name, value, or metadata.Create a new Argument with the specified name and value, and no metadata.Create a new Argument with the specified name, value, and metadata.Create a new Argument with the specified name, value, and metadata. -
Method Summary
Modifier and TypeMethodDescriptionGets the Meta Data attribute of the Argument.Gets the Meta Data attribute of the Argument.getName()Get the name of the Argument.getValue()Gets the value of the Argument object.booleanisSkippable(String parameterName) Is this parameter skippable, i.e. empty/blank string or it looks like an unrecognised variable.voidsetDescription(String description) Sets the Description attribute of the Argument.voidsetMetaData(String newMetaData) Sets the Meta Data attribute of the Argument.voidSet the name of the Argument.voidSets the value of the Argument.toString()Methods inherited from class AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, 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, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
-
Field Details
-
ARG_NAME
-
VALUE
-
DESCRIPTION
-
METADATA
-
-
Constructor Details
-
Argument
public Argument()Create a new Argument without a name, value, or metadata. -
Argument
-
Argument
-
Argument
-
-
Method Details
-
setName
Set the name of the Argument.- Specified by:
setNamein interfaceTestElement- Overrides:
setNamein classAbstractTestElement- Parameters:
newName- the new name
-
getName
Get the name of the Argument.- Specified by:
getNamein interfaceTestElement- Overrides:
getNamein classAbstractTestElement- Returns:
- the attribute's name
-
setValue
Sets the value of the Argument.- Parameters:
newValue- the new value
-
getValue
-
setDescription
Sets the Description attribute of the Argument.- Parameters:
description- the new description
-
getDescription
Gets the Meta Data attribute of the Argument.- Returns:
- the MetaData value
-
setMetaData
Sets the Meta Data attribute of the Argument.- Parameters:
newMetaData- the new metadata
-
getMetaData
Gets the Meta Data attribute of the Argument.- Returns:
- the MetaData value
-
toString
-
isSkippable
Is this parameter skippable, i.e. empty/blank string or it looks like an unrecognised variable.- Parameters:
parameterName- - parameter name- Returns:
- true if parameter should be skipped
-