結果アグリゲータ

public class ResultAggregator
extends CollectingTestListener

java.lang.オブジェクト
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.retry.ResultAggregator


実行された再試行戦略に基づいて、必要に応じて結果を集約する特別なフォワーダー。

まとめ

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

ResultAggregator ( listeners, RetryStrategy strategy) ResultAggregator ( listeners, RetryStrategy strategy)

パブリックメソッド

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

すべての呼び出しレベルのログを、詳細な結果をサポートしない結果レポーターに転送します。

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void setLogSaver (ILogSaver logSaver)

void setUpdatedReporting (boolean updatedReporting)

新しいレポートを設定します。

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 testFailed (TestDescription test, FailureDescription failure)
void testFailed (TestDescription test, String trace)

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

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
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 name, int testCount, int attemptNumber, long startTime)

void testStarted (TestDescription test, long startTime)

保護されたメソッド

File[] getEventsLogs ()

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

結果アグリゲータ

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

パラメーター
listeners

strategy RetryStrategy

パブリックメソッド

クリーンイベントファイル

public void cleanEventsFiles ()

forwardAggregatedInvocationLogs

public final void forwardAggregatedInvocationLogs ()

すべての呼び出しレベルのログを、詳細な結果をサポートしない結果レポーターに転送します。

呼び出し終了

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 logAssociation (String dataName, 
                LogFile logFile)

パラメーター
dataName String

logFile LogFile

setLogSaver

public void setLogSaver (ILogSaver logSaver)

パラメーター
logSaver ILogSaver

setUpdatedReporting

public void setUpdatedReporting (boolean updatedReporting)

新しいレポートを設定します。

パラメーター
updatedReporting boolean

テスト仮定失敗

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 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 testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

パラメーター
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

テストモジュール終了

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 name, 
                int testCount, 
                int attemptNumber, 
                long startTime)

パラメーター
name String

testCount int

attemptNumber int

startTime long

テスト開始

public void testStarted (TestDescription test, 
                long startTime)

パラメーター
test TestDescription

startTime long

保護されたメソッド

イベントログの取得

protected File[] getEventsLogs ()

戻り値
File[]