Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.extractor » [javadoc | source]
org.apache.jmeter.extractor
public class: XPathExtractor [javadoc | source]
java.lang.Object
   org.apache.jmeter.testelement.AbstractTestElement
      org.apache.jmeter.extractor.XPathExtractor

All Implemented Interfaces:
    Serializable, PostProcessor, TestElement

Extracts text from (X)HTML response using XPath query language Example XPath queries:
/html/head/title
extracts Title from HTML response
//form[@name='countryForm']//select[@name='country']/option[text()='Czech Republic'])/@value
extracts value attribute of option element that match text 'Czech Republic' inside of select element with name attribute 'country' inside of form with name attribute 'countryForm'
Method from org.apache.jmeter.extractor.XPathExtractor Summary:
clone,   getDefaultValue,   getRefName,   getXPathQuery,   isQuiet,   isTolerant,   process,   reportErrors,   setDefaultValue,   setNameSpace,   setQuiet,   setRefName,   setReportErrors,   setShowWarnings,   setTolerant,   setXPathQuery,   showWarnings,   useNameSpace
Methods from org.apache.jmeter.testelement.AbstractTestElement:
addProperty,   addTestElement,   canRemove,   clear,   clearTemporary,   clone,   emptyTemporary,   equals,   getName,   getProperty,   getPropertyAsBoolean,   getPropertyAsBoolean,   getPropertyAsDouble,   getPropertyAsFloat,   getPropertyAsInt,   getPropertyAsLong,   getPropertyAsString,   getThreadContext,   getThreadName,   isEnabled,   isRunningVersion,   isTemporary,   logProperties,   mergeIn,   nextIsNull,   propertyIterator,   recoverRunningVersion,   removeProperty,   setName,   setProperty,   setProperty,   setRunningVersion,   setTemporary,   setThreadContext,   setThreadName,   threadFinished,   threadStarted,   traverse,   traverseCollection,   traverseMap,   traverseProperty
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.extractor.XPathExtractor Detail:
 public Object clone() 
 public String getDefaultValue() 
 public String getRefName() 
 public String getXPathQuery() 
 public boolean isQuiet() 
 public boolean isTolerant() 
 public  void process() 
    Do the job - extract value from (X)HTML response using XPath Query. Return value as variable defined by REFNAME. Returns DEFAULT value if not found.
 public boolean reportErrors() 
 public  void setDefaultValue(String val) 
 public  void setNameSpace(boolean val) 
 public  void setQuiet(boolean val) 
 public  void setRefName(String refName) 
 public  void setReportErrors(boolean val) 
 public  void setShowWarnings(boolean val) 
 public  void setTolerant(boolean val) 
 public  void setXPathQuery(String val) 
 public boolean showWarnings() 
 public boolean useNameSpace()