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 String
minimumValue
public String
maximumValue
public String
variableName
public String
outputFormat
public String
randomSeed
public boolean
perThread
public final static String
USERNAME
public final static String
PASSWORD
public transient JMeterContext
threadContext
public transient String
threadName
public final static TestElement.Companion
Companion
public final static String
NAME
public final static String
GUI_CLASS
public final static String
ENABLED
public final static String
TEST_CLASS
public final static String
COMMENTS
-
Constructor Summary
Constructors Constructor Description RandomVariableConfig()
-
Method Summary
Modifier and Type Method Description synchronized String
getMinimumValue()
Returns the minimum value (inclusive). synchronized void
setMinimumValue(String minValue)
Configures the minimum value (inclusive). synchronized String
getMaximumValue()
Returns the maximum value (inclusive). synchronized void
setMaximumValue(String maxvalue)
Configures the maximum value (inclusive). synchronized String
getVariableName()
Returns the variable name. synchronized void
setVariableName(String variableName)
Configures the variable name. synchronized String
getOutputFormat()
Returns the output format. synchronized void
setOutputFormat(String outputFormat)
Configures the output format. synchronized String
getRandomSeed()
Returns the random seed. synchronized void
setRandomSeed(String randomSeed)
Configures the random seed. synchronized boolean
getPerThread()
Returns true
if the random is computed per thread.synchronized void
setPerThread(boolean perThread)
Configures if the random is computed per thread. void
iterationStart(LoopIterationEvent iterEvent)
void
threadStarted()
void
threadFinished()
-
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
true
if 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()
-
-
-
-