|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.jmeter.testelement.AbstractTestElement | +--org.apache.jmeter.assertions.SizeAssertion
Checks if aa Sample is sampled within a specified time-frame. If the duration is larger than the timeframe the Assertion is considered a failure.
Field Summary | |
static int |
EQUAL
|
static int |
GREATERTHAN
|
static int |
GREATERTHANEQUAL
|
static int |
LESSTHAN
|
static int |
LESSTHANEQUAL
|
static int |
NOTEQUAL
|
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement |
log |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
SizeAssertion()
|
Method Summary | |
long |
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. |
byte[] |
getResultBody(byte[] resultData)
Return the body of the http return. |
void |
setAllowedSize(long size)
Set the size that shall be asserted. |
void |
setCompOper(int operator)
set the Operator |
protected AssertionResult |
setResultForNull(AssertionResult result)
|
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public SizeAssertion()
Method Detail |
public AssertionResult getResult(SampleResult response)
getResult
in interface Assertion
response
- the SampleResult containing information about the
Sample (duration, success, etc)
public long getAllowedSize()
public void setCompOper(int operator)
protected AssertionResult setResultForNull(AssertionResult result)
public int getCompOper()
public void setAllowedSize(long size) throws IllegalArgumentException
IllegalArgumentException
- If duration
is negative.public byte[] getResultBody(byte[] resultData)
|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |