org.apache.jmeter.protocol.http.modifier
Class UserParameterModifier
- Cloneable, PreProcessor, Serializable, ConfigElement, TestElement, TestListener
public class UserParameterModifier
This modifier will replace any http sampler's url parameter values with
parameter values defined in a XML file for each simulated user.
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.
addProperty , addTestElement , canRemove , clear , clearTemporary , clone , emptyTemporary , equals , getComment , getName , getProperty , getPropertyAsBoolean , getPropertyAsBoolean , getPropertyAsDouble , getPropertyAsFloat , getPropertyAsInt , getPropertyAsInt , 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 |
UserParameterModifier
public UserParameterModifier()
Default constructor.
getXmlUri
public String getXmlUri()
Return the current XML file name to be read to obtain the parameter data
for all users
- the name of the XML file containing parameter data for each user
process
public void process()
Modifies an entry object to replace the value of any url parameter that
matches a parameter name in the XML file.
- process in interface PreProcessor
setXmlUri
public void setXmlUri(String xmlURI)
From the GUI screen, set file name of XML to read
xmlURI
- the name of the XML file containing the HTTP name value pair
parameters per user
testStarted
public void testStarted()
Runs before the start of every test. Reload the Sequencer with the latest
parameter data for each user
- testStarted in interface TestListener
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.