Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.functions » [javadoc | source]
org.apache.jmeter.functions
public class: Property2 [javadoc | source]
java.lang.Object
   org.apache.jmeter.functions.AbstractFunction
      org.apache.jmeter.functions.Property2

All Implemented Interfaces:
    Function

Function to get a JMeter property, or a default. Does not offer the option to store the value, as it is just as easy to refetch it. This is a specialisation of the __property() function to make it simpler to use for ThreadGroup GUI etc. The name is also shorter. Parameters: - property name - default value (optional; defaults to "1") Usage: Define the property in jmeter.properties, or on the command-line: java ... -Jpropname=value Retrieve the value in the appropriate GUI by using the string: ${__P(propname)} $(__P(propname,default)} Returns: - the property value, but if not found - the default value, but if not present - "1" (suitable for use in ThreadGroup GUI)
Constructor:
 public Property2() 
Method from org.apache.jmeter.functions.Property2 Summary:
execute,   getArgumentDesc,   getReferenceKey,   setParameters
Methods from org.apache.jmeter.functions.AbstractFunction:
checkMinParameterCount,   checkParameterCount,   checkParameterCount,   execute,   execute,   getReferenceKey,   getVariables,   setParameters
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.functions.Property2 Detail:
 public synchronized String execute(SampleResult previousResult,
    Sampler currentSampler) throws InvalidVariableException 
 public List getArgumentDesc() 
 public String getReferenceKey() 
 public synchronized  void setParameters(Collection parameters) throws InvalidVariableException