Serializable
, Cloneable
, Searchable
, PreProcessor
, TestElement
, TestStateListener
public class ParamModifier extends AbstractTestElement implements TestStateListener, PreProcessor, Serializable
For example, if you set up the modifier with a lower bound of 1, an upper bound of 10, and an increment of 2, and run the loop 12 times, the parameter will have the following values (one per loop): 1, 3, 5, 7, 9, 1, 3, 5, 7, 9, 1, 3
The ParamMask
object contains most of the logic for stepping through
this loop. You can make large modifications to this modifier's behaviour by
changing one or two method implementations there.
ParamMask
,
Serialized FormCOMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor | Description |
---|---|
ParamModifier() |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
ParamMask |
getMask() |
|
void |
process() |
Modifies an entry object to replace the value of any url parameter that
matches a defined mask.
|
void |
testEnded() |
Called once for all threads after the end of a test.
|
void |
testEnded(String host) |
Called once for all threads after the end of a test.
|
void |
testStarted() |
Called just before the start of the test from the main engine thread.
|
void |
testStarted(String host) |
Called just before the start of the test from the main engine thread.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, 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, traverseProperty
public ParamMask getMask()
public void testStarted()
TestStateListener
Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted
in interface TestStateListener
StandardJMeterEngine.run()
public void testStarted(String host)
TestStateListener
Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted
in interface TestStateListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded()
TestStateListener
Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded
in interface TestStateListener
StandardJMeterEngine.stopTest()
public void testEnded(String host)
TestStateListener
Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded
in interface TestStateListener
host
- name of hostStandardJMeterEngine.stopTest()
public void process()
process
in interface PreProcessor
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.