org.apache.jmeter.functions
Class Property
- Function
Function to get a JMeter property, and optionally store it
Parameters:
- property name
- variable name (optional)
- default value (optional)
Returns:
- the property value, but if not found:
- the default value, but if not defined:
- the property name itself
String | execute(SampleResult previousResult, Sampler currentSampler) -
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
|
List | getArgumentDesc() - Return a list of strings briefly describing each parameter your function
takes.
|
String | getReferenceKey()
|
void | setParameters(Collection parameters) -
N.B. setParameters() and execute() are called from different threads,
so both must be synchronized unless there are no parameters to save
|
Property
public Property()
getArgumentDesc
public List getArgumentDesc()
Return a list of strings briefly describing each parameter your function
takes. Please use JMeterUtils.getResString(resource_name) to grab a
resource string. Otherwise, your help text will be difficult to
internationalize.
This list is not optional. If you don't wish to write help, you must at
least return a List containing the correct number of blank strings, one
for each argument.
- getArgumentDesc in interface Function
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.