Class HtmlExtractor

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Cloneable , org.apache.jmeter.gui.Searchable , org.apache.jmeter.processor.PostProcessor , org.apache.jmeter.testelement.TestElement

    
    public class HtmlExtractor
    extends AbstractScopedTestElement implements PostProcessor, Serializable
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlExtractor()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Array<String> getImplementations() Get the possible extractor implementations
      void process() Parses the response data using CSS/JQuery expressions and saving the results into variables for use later in the test.
      static Extractor getExtractorImpl(String impl)
      void setExtractor(String attribute) Set the extractor.
      String getExtractor() Get the name of the currently configured extractor
      void setAttribute(String attribute)
      String getAttribute()
      void setExpression(String regex)
      String getExpression()
      void setRefName(String refName)
      String getRefName()
      void setMatchNumber(int matchNumber) Set which Match to use.
      void setMatchNumber(String matchNumber)
      int getMatchNumber()
      String getMatchNumberAsString()
      void setDefaultValue(String defaultValue)
      void setDefaultEmptyValue(boolean defaultEmptyValue)
      String getDefaultValue() Get the default value for the variable if no matches are found
      boolean isEmptyDefaultValue()
      • Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

        addTestElement, canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
      • Methods inherited from class org.apache.jmeter.testelement.AbstractScopedTestElement

        fetchScope, getProps, getSchema, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
      • Methods inherited from class org.apache.jmeter.testelement.TestElement

        get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait