Package org.apache.jmeter.config
Class RandomVariableConfig
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,org.apache.jmeter.config.ConfigElement,org.apache.jmeter.engine.event.LoopIterationListener,org.apache.jmeter.engine.util.NoConfigMerge,org.apache.jmeter.engine.util.NoThreadClone,org.apache.jmeter.gui.Searchable,org.apache.jmeter.testbeans.TestBean,org.apache.jmeter.testelement.TestElement,org.apache.jmeter.testelement.ThreadListener
public class RandomVariableConfig extends ConfigTestElement implements TestBean, LoopIterationListener, NoThreadClone, NoConfigMerge, ThreadListener
-
-
Field Summary
Fields Modifier and Type Field Description public StringminimumValuepublic StringmaximumValuepublic StringvariableNamepublic StringoutputFormatpublic StringrandomSeedpublic booleanperThreadpublic final static StringUSERNAMEpublic final static StringPASSWORDpublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description RandomVariableConfig()
-
Method Summary
Modifier and Type Method Description synchronized StringgetMinimumValue()Returns the minimum value (inclusive). synchronized voidsetMinimumValue(String minValue)Configures the minimum value (inclusive). synchronized StringgetMaximumValue()Returns the maximum value (inclusive). synchronized voidsetMaximumValue(String maxvalue)Configures the maximum value (inclusive). synchronized StringgetVariableName()Returns the variable name. synchronized voidsetVariableName(String variableName)Configures the variable name. synchronized StringgetOutputFormat()Returns the output format. synchronized voidsetOutputFormat(String outputFormat)Configures the output format. synchronized StringgetRandomSeed()Returns the random seed. synchronized voidsetRandomSeed(String randomSeed)Configures the random seed. synchronized booleangetPerThread()Returns trueif the random is computed per thread.synchronized voidsetPerThread(boolean perThread)Configures if the random is computed per thread. voiditerationStart(LoopIterationEvent iterEvent)voidthreadStarted()voidthreadFinished()-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse -
Methods inherited from class org.apache.jmeter.config.ConfigTestElement
addConfigElement, addTestElement, expectsModification, getProps, getSchema -
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMinimumValue
synchronized String getMinimumValue()
Returns the minimum value (inclusive).
- Returns:
the minValue
-
setMinimumValue
synchronized void setMinimumValue(String minValue)
Configures the minimum value (inclusive).
- Parameters:
minValue- the minValue to set
-
getMaximumValue
synchronized String getMaximumValue()
Returns the maximum value (inclusive).
- Returns:
the maxvalue
-
setMaximumValue
synchronized void setMaximumValue(String maxvalue)
Configures the maximum value (inclusive).
- Parameters:
maxvalue- the maxvalue to set
-
getVariableName
synchronized String getVariableName()
Returns the variable name.
- Returns:
the variableName
-
setVariableName
synchronized void setVariableName(String variableName)
Configures the variable name.
- Parameters:
variableName- the variableName to set
-
getOutputFormat
synchronized String getOutputFormat()
Returns the output format.
- Returns:
the outputFormat
-
setOutputFormat
synchronized void setOutputFormat(String outputFormat)
Configures the output format.
- Parameters:
outputFormat- the outputFormat to set
-
getRandomSeed
synchronized String getRandomSeed()
Returns the random seed.
- Returns:
the randomSeed
-
setRandomSeed
synchronized void setRandomSeed(String randomSeed)
Configures the random seed.
- Parameters:
randomSeed- the randomSeed to set
-
getPerThread
synchronized boolean getPerThread()
Returns
trueif the random is computed per thread.- Returns:
the perThread
-
setPerThread
synchronized void setPerThread(boolean perThread)
Configures if the random is computed per thread.
- Parameters:
perThread- the perThread to set
-
iterationStart
void iterationStart(LoopIterationEvent iterEvent)
-
threadStarted
void threadStarted()
-
threadFinished
void threadFinished()
-
-
-
-