結果フォワーダー

public class ResultForwarder
extends Object implements ITestInvocationListener

java.lang.オブジェクト
com.android.tradefed.result.ResultForwarder


呼び出し結果を他のリスナーのリストに転送するITestInvocationListener

まとめ

パブリックコンストラクター

ResultForwarder ( listeners) ResultForwarder ( listeners)

ResultForwarderを作成します。

ResultForwarder (ITestInvocationListener... listeners)

ResultForwarderの代替変数 arg コンストラクター。

保護されたコンストラクター

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 コンストラクター。

パラメーター
listeners ITestInvocationListener : 結果を転送する実際のITestInvocationListener

保護されたコンストラクター

結果フォワーダー

protected ResultForwarder ()

遅延リスナー設定を使用してResultForwarderを作成します。サブクラスによる使用のみを目的としています。

パブリックメソッド

get概要

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

テスト仮定失敗

public void testAssumptionFailure (TestDescription test, 
                String trace)

パラメーター
test TestDescription

trace String

テスト仮定失敗

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

パラメーター
test TestDescription

failure FailureDescription

テスト終了

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

パラメーター
test TestDescription

endTime long

testMetrics

テスト終了

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

テスト無視されました

public void testIgnored (TestDescription test)

パラメーター
test TestDescription

テストログ

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

パラメーター
dataName String

dataType LogDataType

dataStream InputStreamSource

テストモジュール終了

public void testModuleEnded ()

テストモジュールが開始されました

public void testModuleStarted (IInvocationContext moduleContext)

パラメーター
moduleContext IInvocationContext

テスト実行終了

public void testRunEnded (long elapsedTime, 
                 runMetrics)

パラメーター
elapsedTime long

runMetrics

テスト実行失敗

public void testRunFailed (FailureDescription failure)

パラメーター
failure FailureDescription

テスト実行失敗

public void testRunFailed (String errorMessage)

パラメーター
errorMessage String

テスト実行開始しました

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

パラメーター
runName String

testCount int

attemptNumber int

テスト実行開始しました

public void testRunStarted (String runName, 
                int testCount)

パラメーター
runName String

testCount int

テスト実行開始しました

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

パラメーター
runName String

testCount int

attemptNumber int

startTime long

テスト実行停止

public void testRunStopped (long elapsedTime)

パラメーター
elapsedTime long

テスト開始

public void testStarted (TestDescription test, 
                long startTime)

パラメーター
test TestDescription

startTime long

テスト開始

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