public class SizeAssertion extends AbstractScopedAssertion implements Serializable, Assertion
Modifier and Type | Field and Description |
---|---|
static int |
EQUAL |
static int |
GREATERTHAN |
static int |
GREATERTHANEQUAL |
static int |
LESSTHAN |
static int |
LESSTHANEQUAL |
static int |
NOTEQUAL |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
SizeAssertion() |
Modifier and Type | Method and Description |
---|---|
String |
getAllowedSize()
Returns the size in bytes to be asserted.
|
int |
getCompOper()
Returns the operator to be asserted.
|
AssertionResult |
getResult(SampleResult response)
Returns the result of the Assertion.
|
String |
getTestField() |
boolean |
isTestFieldNetworkSize() |
boolean |
isTestFieldResponseBody() |
boolean |
isTestFieldResponseCode() |
boolean |
isTestFieldResponseHeaders() |
boolean |
isTestFieldResponseMessage() |
void |
setAllowedSize(long size)
Set the size that should be used in the assertion
|
void |
setAllowedSize(String size)
Set the size that shall be asserted.
|
void |
setCompOper(int operator)
Set the operator used for the assertion.
|
void |
setTestFieldNetworkSize() |
void |
setTestFieldResponseBody() |
void |
setTestFieldResponseCode() |
void |
setTestFieldResponseHeaders() |
void |
setTestFieldResponseMessage() |
getScopeName
fetchScope, getSampleList, 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 static final int EQUAL
public static final int NOTEQUAL
public static final int GREATERTHAN
public static final int LESSTHAN
public static final int GREATERTHANEQUAL
public static final int LESSTHANEQUAL
public AssertionResult getResult(SampleResult response)
public String getAllowedSize()
public void setCompOper(int operator)
operator
- The operator to be used in the assertionpublic int getCompOper()
public void setAllowedSize(String size)
size
- a number of bytes.public void setAllowedSize(long size)
size
- The number of bytespublic void setTestFieldNetworkSize()
public void setTestFieldResponseHeaders()
public void setTestFieldResponseBody()
public void setTestFieldResponseCode()
public void setTestFieldResponseMessage()
public String getTestField()
public boolean isTestFieldNetworkSize()
public boolean isTestFieldResponseHeaders()
public boolean isTestFieldResponseBody()
public boolean isTestFieldResponseCode()
public boolean isTestFieldResponseMessage()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.