org.aludratest.exception
Class AludraTestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.aludratest.exception.AludraTestException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessFailure, AutomationException, FunctionalFailure, PerformanceFailure, TechnicalException

public abstract class AludraTestException
extends RuntimeException

Root class of all AludraTest exceptions.

Author:
Marcel Malitz, Volker Bergmann
See Also:
Serialized Form

Constructor Summary
protected AludraTestException(String message)
          Constructor.
protected AludraTestException(String message, Throwable cause)
          Constructor.
 
Method Summary
abstract  TestStatus getTestStatus()
          Provides the TestStatus which is appropriate for this exception
 boolean shouldSaveDebugAttachments()
          Tells the framework if it should save a screenshot when this exception occurs.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AludraTestException

protected AludraTestException(String message)
Constructor.

Parameters:
message - the exception message

AludraTestException

protected AludraTestException(String message,
                              Throwable cause)
Constructor.

Parameters:
message - the exception message
cause - the root cause of the error
Method Detail

shouldSaveDebugAttachments

public boolean shouldSaveDebugAttachments()
Tells the framework if it should save a screenshot when this exception occurs. The default implementation returns true. Subclasses can override to deactivate debug attachments for their specific type of exception

Returns:
true if a screenshot shall be created, otherwise false

getTestStatus

public abstract TestStatus getTestStatus()
Provides the TestStatus which is appropriate for this exception

Returns:
the associated TestStatus


Copyright © 2015 aludratest.org. All rights reserved.