|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.testelement.AbstractScopedTestElement
org.apache.jmeter.extractor.HtmlExtractor
public class HtmlExtractor
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()
Get the default value for the variable if no matches are found |
String |
getExpression()
|
String |
getExtractor()
Get the name of the currently configured extractor |
static Extractor |
getExtractorImpl(String impl)
|
static String[] |
getImplementations()
Get the possible extractor implementations |
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)
Set the extractor. |
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 java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EXTRACTOR_JSOUP
public static final String EXTRACTOR_JODD
public static final String DEFAULT_EXTRACTOR
Constructor Detail |
---|
public HtmlExtractor()
Method Detail |
---|
public static String[] getImplementations()
public void process()
process
in interface PostProcessor
PostProcessor.process()
public static final Extractor getExtractorImpl(String impl)
impl
- Extractor implementation
public void setExtractor(String attribute)
getImplementations()
attribute
- The name of the extractor to be usedpublic String getExtractor()
public void setAttribute(String attribute)
public String getAttribute()
public void setExpression(String regex)
public String getExpression()
public void setRefName(String refName)
public String getRefName()
public void setMatchNumber(int matchNumber)
0
, which is interpreted as meaning random.
matchNumber
- The number of the match to be usedpublic void setMatchNumber(String matchNumber)
public int getMatchNumber()
public String getMatchNumberAsString()
public void setDefaultValue(String defaultValue)
defaultValue
- The default value for the variablepublic String getDefaultValue()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |