Google is committed to advancing racial equity for Black communities. See how.
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

結果轉發器

public class ResultForwarder
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.result.ResultForwarder


一個ITestInvocationListener ,它將調用結果轉發到其他偵聽器列表。

摘要

公共建設者

ResultForwarder ( listeners) ResultForwarder ( listeners)

創建一個ResultForwarder

ResultForwarder (ITestInvocationListener... listeners)

ResultForwarder備用變量arg構造ResultForwarder

受保護的構造函數

ResultForwarder ()

使用延遲的偵聽器設置創建一個ResultForwarder

公開方法

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount, int attemptNumber)

void testRunStarted (String runName, int testCount)

void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test, long startTime)

void testStarted (TestDescription test)

受保護的方法

getListeners ()

獲取偵聽器列表。

void setListeners ( listeners) setListeners ( listeners)

構建後設置監聽器。

void setListeners (ITestInvocationListener... listeners)

構建後設置偵聽器。

公共建設者

結果轉發器

public ResultForwarder ( listeners)

創建一個ResultForwarder

參量
listeners :真正的ITestInvocationListener ,將結果轉發到

結果轉發器

public ResultForwarder (ITestInvocationListener... listeners)

ResultForwarder備用變量arg構造ResultForwarder

參量
listeners ITestInvocationListener :真正的ITestInvocationListener用於將結果轉發到

受保護的構造函數

結果轉發器

protected ResultForwarder ()

使用延遲的偵聽器設置創建一個ResultForwarder 。僅供子類使用。

公開方法

getSummary

public TestSummary getSummary ()

退貨
TestSummary

調用結束

public void invocationEnded (long elapsedTime)

參量
elapsedTime long

調用失敗

public void invocationFailed (FailureDescription failure)

參量
failure FailureDescription

調用失敗

public void invocationFailed (Throwable cause)

參量
cause Throwable

調用開始

public void invocationStarted (IInvocationContext context)

參量
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

參量
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

參量
test TestDescription

failure FailureDescription

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

參量
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

參量
test TestDescription

testMetrics

測試失敗

public void testFailed (TestDescription test, 
                FailureDescription failure)

參量
test TestDescription

failure FailureDescription

測試失敗

public void testFailed (TestDescription test, 
                String trace)

參量
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

參量
test TestDescription

測試日誌

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

參量
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

參量
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

參量
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

參量
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

參量
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

參量
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

參量
runName String

testCount int

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

參量
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long elapsedTime)

參量
elapsedTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

參量
test TestDescription

startTime long

testStarted

public void testStarted (TestDescription test)

參量
test TestDescription

受保護的方法

getListeners

protected  getListeners ()

獲取偵聽器列表。僅供子類使用。

退貨
ITestInvocationListener的列表。

setListeners

protected void setListeners ( listeners)

構建後設置監聽器。僅供子類使用。

參量
listeners :真正的ITestInvocationListener ,將結果轉發到

setListeners

protected void setListeners (ITestInvocationListener... listeners)

構建後設置偵聽器。僅供子類使用。

參量
listeners ITestInvocationListener :將結果轉發到的實際ITestInvocationListener