|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jmeter.assertions.AssertionResult
public class AssertionResult
Implements Response Assertion checking.
| Field Summary | |
|---|---|
static String |
RESPONSE_WAS_NULL
|
| Constructor Summary | |
|---|---|
AssertionResult()
Deprecated. - use the named constructor |
|
AssertionResult(String name)
Create a new Assertion Result. |
|
| Method Summary | |
|---|---|
String |
getFailureMessage()
Get the message associated with any failure or error. |
String |
getName()
Get the name of the assertion |
boolean |
isError()
Check if an error occurred while checking the assertion. |
boolean |
isFailure()
Check if the assertion failed. |
void |
setError(boolean e)
Set the flag indicating whether or not an error occurred. |
void |
setFailure(boolean f)
Set the flag indicating whether or not a failure occurred. |
void |
setFailureMessage(String message)
Set the failure message giving more details about a failure or error. |
AssertionResult |
setResultForFailure(String message)
Convenience method for setting up failed results |
AssertionResult |
setResultForNull()
Convenience method for setting up results where the response was null |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String RESPONSE_WAS_NULL
| Constructor Detail |
|---|
@Deprecated public AssertionResult()
public AssertionResult(String name)
name - the name of the assertion| Method Detail |
|---|
public String getName()
public boolean isFailure()
public boolean isError()
public String getFailureMessage()
public void setError(boolean e)
e - true if an error occurred, false otherwisepublic void setFailure(boolean f)
f - true if a failure occurred, false otherwisepublic void setFailureMessage(String message)
message - the message to setpublic AssertionResult setResultForFailure(String message)
message - the message to set
public AssertionResult setResultForNull()
public String toString()
toString in class Object
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||