org.apache.jmeter.functions
Class Variable
- Function
Function to get a JMeter Variable
Parameters:
- variable name
Returns:
- the variable value, but if not found
- the variable 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
|
Variable
public Variable()
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.