|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.jmeter.testelement.AbstractTestElement | +--org.apache.jmeter.protocol.http.modifier.ParamModifier
This modifier will replace any single http sampler's url parameter value
with a value from a given range - thereby "masking" the value set in the
http sampler. The parameter names must match exactly, and the parameter
value must be preset to "*" to diferentiate between duplicate parameter
names.
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 FormField Summary |
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement |
log |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
ParamModifier()
Default constructor |
Method Summary | |
ParamMask |
getMask()
|
void |
process()
Modifies an entry object to replace the value of any url parameter that matches a defined mask. |
void |
testEnded()
|
void |
testEnded(String host)
|
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is fired. |
void |
testStarted()
|
void |
testStarted(String host)
|
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParamModifier()
Method Detail |
public ParamMask getMask()
public void testStarted()
testStarted
in interface TestListener
public void testStarted(String host)
testStarted
in interface TestListener
public void testEnded()
testEnded
in interface TestListener
public void testEnded(String host)
testEnded
in interface TestListener
public void process()
process
in interface PreProcessor
True
if modified, else false
public void testIterationStart(LoopIterationEvent event)
TestListener
testIterationStart
in interface TestListener
event
- TestListener.testIterationStart(LoopIterationEvent)
|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |