@Deprecated public class UserParameterModifier extends ConfigTestElement implements PreProcessor, Serializable, TestListener
For example if userid and password are defined in the XML parameter file for each user (ie thread), then simulated multiple user activity can occur. This test element is deprecated. Test plans should use User Parameters instead.
PASSWORD, USERNAME
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
UserParameterModifier()
Deprecated.
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
|
String |
getXmlUri()
Deprecated.
Return the current XML file name to be read to obtain the parameter data
for all users
|
void |
process()
Deprecated.
Modifies an entry object to replace the value of any url parameter that
matches a parameter name in the XML file.
|
void |
setXmlUri(String xmlURI)
Deprecated.
From the GUI screen, set file name of XML to read
|
void |
testEnded()
Deprecated.
Called once for all threads after the end of a test.
|
void |
testEnded(String host)
Deprecated.
Called once for all threads after the end of a test.
|
void |
testIterationStart(LoopIterationEvent event)
Deprecated.
Each time through a Thread Group's test script, an iteration event is
fired for each thread.
|
void |
testStarted()
Deprecated.
Runs before the start of every test.
|
void |
testStarted(String host)
Deprecated.
Called just before the start of the test from the main engine thread.
|
addConfigElement, addTestElement, expectsModification
addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
public UserParameterModifier()
public void testStarted()
testStarted
in interface TestListener
StandardJMeterEngine.run()
public void testEnded()
TestListener
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 TestListener
StandardJMeterEngine.stopTest()
public void testStarted(String host)
TestListener
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 TestListener
host
- name of hostStandardJMeterEngine.run()
public void testEnded(String host)
TestListener
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 TestListener
host
- name of hostStandardJMeterEngine.stopTest()
public void process()
process
in interface PreProcessor
public String getXmlUri()
public void setXmlUri(String xmlURI)
xmlURI
- the name of the XML file containing the HTTP name value pair
parameters per userpublic void testIterationStart(LoopIterationEvent event)
testIterationStart
in interface TestListener
public Object clone()
clone
in interface ConfigElement
clone
in interface TestElement
clone
in class AbstractTestElement
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.