|
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.testelement.AbstractScopedAssertion
org.apache.jmeter.assertions.SizeAssertion
public class 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 | |
---|---|
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()
|
Methods inherited from class org.apache.jmeter.testelement.AbstractScopedAssertion |
---|
getScopeName |
Methods inherited from class org.apache.jmeter.testelement.AbstractScopedTestElement |
---|
fetchScope, getSampleList, 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 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 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()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |