Apache JMeter
2.0.1.20050615

org.apache.jmeter.assertions
Class AssertionResult

java.lang.Object
  extended byorg.apache.jmeter.assertions.AssertionResult
All Implemented Interfaces:
Serializable

public class AssertionResult
extends Object
implements Serializable

Version:
$Revision: 1.4 $
Author:
Michael Stover
See Also:
Serialized Form

Constructor Summary
AssertionResult()
          Create a new Assertion Result.
 
Method Summary
 String getFailureMessage()
          Get the message associated with any failure or error.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertionResult

public AssertionResult()
Create a new Assertion Result. The result will indicate no failure or error.

Method Detail

isFailure

public boolean isFailure()
Check if the assertion failed. If it failed, the failure message may give more details about the failure.

Returns:
true if the assertion failed, false if the sample met the assertion criteria

isError

public boolean isError()
Check if an error occurred while checking the assertion. If an error occurred, the failure message may give more details about the error.

Returns:
true if an error occurred while checking the assertion, false otherwise.

getFailureMessage

public String getFailureMessage()
Get the message associated with any failure or error. This method may return null if no message was set.

Returns:
a failure or error message, or null if no message has been set

setError

public void setError(boolean e)
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)
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)
Set the failure message giving more details about a failure or error.

Parameters:
message - the message to set

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.