FailureEmailResultReporter

public class FailureEmailResultReporter
extends EmailResultReporter

java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.EmailResultReporter
       ↳ com.android.tradefed.result.FailureEmailResultReporter


An EmailResultReporter that sends notifications if either a test failure or invocation failure occurred.

Summary

Public constructors

FailureEmailResultReporter()

Default constructor

Protected constructors

FailureEmailResultReporter(IEmail mailer)

Create a FailureEmailResultReporter with a custom IEmail instance to use.

Protected methods

boolean shouldSendMessage()

Send a message if there was a failure.

Public constructors

FailureEmailResultReporter

FailureEmailResultReporter ()

Default constructor

Protected constructors

FailureEmailResultReporter

FailureEmailResultReporter (IEmail mailer)

Create a FailureEmailResultReporter with a custom IEmail instance to use.

Exposed for unit testing.

Parameters
mailer IEmail: the IEmail instance to use.

Protected methods

shouldSendMessage

boolean shouldSendMessage ()

Send a message if there was a failure.

Returns
boolean true if the InvocationStatus is not SUCCESS or if hasFailedTests() is true, false otherwise.