Apache JMeter

org.apache.jmeter.extractor
Class HtmlExtractor

java.lang.Object
  extended by org.apache.jmeter.testelement.AbstractTestElement
      extended by org.apache.jmeter.testelement.AbstractScopedTestElement
          extended by org.apache.jmeter.extractor.HtmlExtractor
All Implemented Interfaces:
Serializable, Cloneable, Searchable, PostProcessor, TestElement

public class HtmlExtractor
extends AbstractScopedTestElement
implements PostProcessor, Serializable

See Also:
Serialized Form

Field Summary
static String DEFAULT_EXTRACTOR
           
static String EXTRACTOR_JODD
           
static String EXTRACTOR_JSOUP
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
HtmlExtractor()
           
 
Method Summary
 String getAttribute()
           
 String getDefaultValue()
           
 String getExpression()
           
 String getExtractor()
           
static Extractor getExtractorImpl(String impl)
           
static String[] getImplementations()
           
 int getMatchNumber()
           
 String getMatchNumberAsString()
           
 String getRefName()
           
 void process()
          Parses the response data using CSS/JQuery expressions and saving the results into variables for use later in the test.
 void setAttribute(String attribute)
           
 void setDefaultValue(String defaultValue)
          Sets the value of the variable if no matches are found
 void setExpression(String regex)
           
 void setExtractor(String attribute)
           
 void setMatchNumber(int matchNumber)
          Set which Match to use.
 void setMatchNumber(String matchNumber)
           
 void setRefName(String refName)
           
 
Methods inherited from class org.apache.jmeter.testelement.AbstractScopedTestElement
fetchScope, getSampleList, getScopeName, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTRACTOR_JSOUP

public static final String EXTRACTOR_JSOUP
See Also:
Constant Field Values

EXTRACTOR_JODD

public static final String EXTRACTOR_JODD
See Also:
Constant Field Values

DEFAULT_EXTRACTOR

public static final String DEFAULT_EXTRACTOR
See Also:
Constant Field Values
Constructor Detail

HtmlExtractor

public HtmlExtractor()
Method Detail

getImplementations

public static String[] getImplementations()

process

public void process()
Parses the response data using CSS/JQuery expressions and saving the results into variables for use later in the test.

Specified by:
process in interface PostProcessor
See Also:
PostProcessor.process()

getExtractorImpl

public static final Extractor getExtractorImpl(String impl)
Parameters:
impl - Extractor implementation
Returns:
Extractor

setExtractor

public void setExtractor(String attribute)

getExtractor

public String getExtractor()

setAttribute

public void setAttribute(String attribute)

getAttribute

public String getAttribute()

setExpression

public void setExpression(String regex)

getExpression

public String getExpression()

setRefName

public void setRefName(String refName)

getRefName

public String getRefName()

setMatchNumber

public void setMatchNumber(int matchNumber)
Set which Match to use. This can be any positive number, indicating the exact match to use, or 0, which is interpreted as meaning random.

Parameters:
matchNumber -

setMatchNumber

public void setMatchNumber(String matchNumber)

getMatchNumber

public int getMatchNumber()

getMatchNumberAsString

public String getMatchNumberAsString()

setDefaultValue

public void setDefaultValue(String defaultValue)
Sets the value of the variable if no matches are found

Parameters:
defaultValue -

getDefaultValue

public String getDefaultValue()

Apache JMeter

Copyright © 1998-2013 Apache Software Foundation. All Rights Reserved.