InvocationFailureEmailResultReporter
public class InvocationFailureEmailResultReporter
extendsEmailResultReporter
java.lang.Object | |||
↳ | com.android.tradefed.result.CollectingTestListener | ||
↳ | com.android.tradefed.result.EmailResultReporter | ||
↳ | com.android.tradefed.result.InvocationFailureEmailResultReporter |
一個EmailResultReporter
,它還可以將通知限制為僅調用失敗。
概要
公共建設者 | |
---|---|
InvocationFailureEmailResultReporter () 默認構造函數 |
受保護的構造函數 | |
---|---|
InvocationFailureEmailResultReporter (IEmail mailer) 使用要使用的自定義 |
公開方法 | |
---|---|
void | invocationInterrupted ()
|
受保護的方法 | |
---|---|
boolean | shouldSendMessage () 如果調用失敗,請發送消息。 |
公共建設者
InvocationFailureEmailResultReporter
public InvocationFailureEmailResultReporter ()
默認構造函數
受保護的構造函數
InvocationFailureEmailResultReporter
protected InvocationFailureEmailResultReporter (IEmail mailer)
使用要使用的自定義IEmail
實例創建一個InvocationFailureEmailResultReporter
。
參量 | |
---|---|
mailer | IEmail :要使用的IEmail 實例。 |
公開方法
調用中斷
public void invocationInterrupted ()
受保護的方法
應該發送消息
protected boolean shouldSendMessage ()
如果調用失敗,請發送消息。
退貨 | |
---|---|
boolean | true 如果InvocationStatus不InvocationStatus#SUCCESS ,或false 如果它是。 |