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

All Implemented Interfaces:
    Function

The function represented by this class allows data to be read from XML files. Syntax is similar to the CVSRead function. The function allows the test to line-thru the nodes in the XML file - one node per each test. E.g. inserting the following in the test scripts : ${_XPath(c:/BOF/abcd.xml,/xpath/)} // match the (first) node ${_XPath(c:/BOF/abcd.xml,/xpath/)} // Go to next match of '/xpath/' expression NOTE: A single instance of each different file/expression combination is opened and used for all threads.
Constructor:
 public XPath() 
Method from org.apache.jmeter.functions.XPath 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.XPath 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