public class BoundaryExtractor extends AbstractScopedTestElement implements PostProcessor, Serializable
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
BoundaryExtractor() |
Modifier and Type | Method and Description |
---|---|
List<String> |
extractAll(String leftBoundary,
String rightBoundary,
String textToParse) |
String |
getDefaultValue()
Get the default value for the variable if no matches are found
|
String |
getLeftBoundary() |
int |
getMatchNumber() |
String |
getMatchNumberAsString() |
String |
getRefName() |
String |
getRightBoundary() |
boolean |
isEmptyDefaultValue() |
void |
process()
Parses the response data using Boundaries and saving the results
into variables for use later in the test.
|
void |
setDefaultEmptyValue(boolean defaultEmptyValue) |
void |
setDefaultValue(String defaultValue)
Sets the value of the variable if no matches are found
|
void |
setLeftBoundary(String leftBoundary) |
void |
setMatchNumber(int matchNumber)
Set which Match to use.
|
void |
setMatchNumber(String matchNumber) |
void |
setRefName(String refName) |
void |
setRightBoundary(String rightBoundary) |
void |
setUseField(String actionCommand) |
boolean |
useBody() |
boolean |
useBodyAsDocument() |
boolean |
useCode() |
boolean |
useHeaders() |
boolean |
useMessage() |
boolean |
useRequestHeaders() |
boolean |
useUnescapedBody() |
boolean |
useUrl() |
fetchScope, getSampleList, getScopeName, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
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
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
removed
public void process()
process
in interface PostProcessor
PostProcessor.process()
public List<String> extractAll(String leftBoundary, String rightBoundary, String textToParse)
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 setLeftBoundary(String leftBoundary)
public String getLeftBoundary()
public void setRightBoundary(String rightBoundary)
public String getRightBoundary()
public void setDefaultValue(String defaultValue)
defaultValue
- The default value for the variablepublic void setDefaultEmptyValue(boolean defaultEmptyValue)
defaultEmptyValue
- boolean set value to "" if not foundpublic String getDefaultValue()
public boolean isEmptyDefaultValue()
public boolean useHeaders()
public boolean useRequestHeaders()
public boolean useBody()
public boolean useUnescapedBody()
public boolean useBodyAsDocument()
public boolean useUrl()
public boolean useCode()
public boolean useMessage()
public void setUseField(String actionCommand)
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.