イベントロガーリスナー

public class EventsLoggerListener
extends Object implements ILogSaverListener

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


受信したすべてのイベントをファイルに記録するリスナー

まとめ

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

EventsLoggerListener (String name)

パブリックメソッド

File getLoggedEvents ()
void invocationEnded (long elapsedTime)
void invocationFailed (FailureDescription failure)
void invocationStarted (IInvocationContext context)
void logAssociation (String dataName, LogFile logFile)
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 testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics)
void testRunFailed (FailureDescription failure)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
void testStarted (TestDescription test, long startTime)

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

イベントロガーリスナー

public EventsLoggerListener (String name)

パラメーター
name String

パブリックメソッド

getLoggedEvents

public File getLoggedEvents ()

戻り値
File

呼び出し終了

public void invocationEnded (long elapsedTime)

パラメーター
elapsedTime long

呼び出し失敗

public void invocationFailed (FailureDescription failure)

パラメーター
failure FailureDescription

呼び出し開始

public void invocationStarted (IInvocationContext context)

パラメーター
context IInvocationContext

ログ関連付け

public void logAssociation (String dataName, 
                LogFile logFile)

パラメーター
dataName String

logFile LogFile

テスト仮定失敗

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 testModuleEnded ()

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

public void testModuleStarted (IInvocationContext moduleContext)

パラメーター
moduleContext IInvocationContext

テスト実行終了

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

パラメーター
elapsedTimeMillis 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, 
                long startTime)

パラメーター
runName String

testCount int

attemptNumber int

startTime long

テスト開始

public void testStarted (TestDescription test, 
                long startTime)

パラメーター
test TestDescription

startTime long