public class

DeviceUnavailEmailResultReporter

extends EmailResultReporter
java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.EmailResultReporter
       ↳ com.android.tradefed.result.DeviceUnavailEmailResultReporter

Class Overview

An EmailResultReporter that will send email when invocation fails due to a device not available exception.

Summary

Public Constructors
DeviceUnavailEmailResultReporter()
Protected Methods
boolean shouldSendMessage()
A method, meant to be overridden, which should do whatever filtering is decided and determine whether a notification email should be sent for the test results.
[Expand]
Inherited Methods
From class com.android.tradefed.result.EmailResultReporter
From class com.android.tradefed.result.CollectingTestListener
From class java.lang.Object
From interface com.android.ddmlib.testrunner.ITestRunListener
From interface com.android.tradefed.result.ITestInvocationListener
From interface com.android.tradefed.result.ITestSummaryListener

Public Constructors

public DeviceUnavailEmailResultReporter ()

Protected Methods

protected boolean shouldSendMessage ()

A method, meant to be overridden, which should do whatever filtering is decided and determine whether a notification email should be sent for the test results. Presumably, would consider how many (if any) tests failed, prior failures of the same tests, etc.

Returns
  • true if a notification email should be sent, false if not