|
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.assertions.SizeAssertion
Checks if the results of a Sample matches a particular size.
Field Summary | |
static int |
EQUAL
|
static int |
GREATERTHAN
|
static int |
GREATERTHANEQUAL
|
static int |
LESSTHAN
|
static int |
LESSTHANEQUAL
|
static int |
NOTEQUAL
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
COMMENTS, 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. |
void |
setAllowedSize(long size)
Set the size that shall be asserted. |
void |
setCompOper(int operator)
set the Operator |
Methods inherited from class java.lang.Object |
finalize, getClass, 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)
public int getCompOper()
public void setAllowedSize(long size) throws IllegalArgumentException
size
- -
a number of bytes. Is not allowed to be negative. Use
Long.MAX_VALUE to indicate illegal or empty inputs. This will
result in not checking the assertion.
IllegalArgumentException
- If size
is negative.
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |