| |
|
| java.lang.Object org.apache.jmeter.assertions.AssertionResult
AssertionResult | public class AssertionResult implements Serializable(Code) | | author: Michael Stover |
RESPONSE_WAS_NULL | final public static String RESPONSE_WAS_NULL(Code) | | |
AssertionResult | public AssertionResult()(Code) | | Create a new Assertion Result. The result will indicate no failure or
error.
|
AssertionResult | public AssertionResult(String name)(Code) | | Create a new Assertion Result. The result will indicate no failure or
error.
Parameters: name - the name of the assertion |
getFailureMessage | public String getFailureMessage()(Code) | | Get the message associated with any failure or error. This method may
return null if no message was set.
a failure or error message, or null if no message has been set |
getName | public String getName()(Code) | | Get the name of the assertion
the name of the assertion |
isError | public boolean isError()(Code) | | Check if an error occurred while checking the assertion. If an error
occurred, the failure message may give more details about the error.
true if an error occurred while checking the assertion, falseotherwise. |
isFailure | public boolean isFailure()(Code) | | Check if the assertion failed. If it failed, the failure message may give
more details about the failure.
true if the assertion failed, false if the sample met theassertion criteria |
setError | public void setError(boolean e)(Code) | | Set the flag indicating whether or not an error occurred.
Parameters: e - true if an error occurred, false otherwise |
setFailure | public void setFailure(boolean f)(Code) | | Set the flag indicating whether or not a failure occurred.
Parameters: f - true if a failure occurred, false otherwise |
setFailureMessage | public void setFailureMessage(String message)(Code) | | Set the failure message giving more details about a failure or error.
Parameters: message - the message to set |
setName | public void setName(String name)(Code) | | Set the name of the assertion
Parameters: name - the name of the assertion |
setResultForFailure | public AssertionResult setResultForFailure(String message)(Code) | | Convenience method for setting up failed results
Parameters: message - the message to set this |
setResultForNull | public AssertionResult setResultForNull()(Code) | | Convenience method for setting up results where the response was null
assertion result with appropriate fields set up |
|
|
|