ProtoResultReporter

public abstract class ProtoResultReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
   ↳ com.android.tradefed.result.proto.ProtoResultReporter


結果レポーターは、すべての結果を含む TestRecord プロトブーブをビルドします。processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) の最終的なプロトコルをどのように処理するかを処理するように拡張する必要があります。

概要

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

ProtoResultReporter()

パブリック メソッド

final void invocationEnded(long elapsedTime)
void invocationFailed(FailureDescription failure)
void invocationFailed(Throwable cause)
final void invocationStarted(IInvocationContext context)
final void logAssociation(String dataName, LogFile logFile)
void processFinalProto(TestRecordProto.TestRecord finalRecord)

すべての結果を含む最終プロトコルの処理。

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) が発生した後の部分呼び出しテスト レコード プロトコルの処理。

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 発生後の確定済みテストケース レコード プロトコルの処理。

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(com.android.tradefed.result.TestDescription, long) が発生した後の部分的なテストケース レコード プロトコルの処理。

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

testModuleEnded() が発生した後の、ファイナライズされたモジュール レコード proto の処理。

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(com.android.tradefed.invoker.IInvocationContext) が発生した後の部分モジュール レコード プロトコルの処理。

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap) が発生した後の、確定済み実行レコード proto の処理。

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) が発生した後の部分テスト実行レコード プロトコルの処理。

boolean supportGranularResults()
final void testAssumptionFailure(TestDescription test, String trace)
final void testAssumptionFailure(TestDescription test, FailureDescription failure)
final void testEnded(TestDescription test, long endTime, testMetrics)
void testEnded(TestDescription test, testMetrics)
final void testFailed(TestDescription test, FailureDescription failure)
final void testFailed(TestDescription test, String trace)
final void testIgnored(TestDescription test)
final void testModuleEnded()
final void testModuleStarted(IInvocationContext moduleContext)
final void testRunEnded(long elapsedTimeMillis, runMetrics)
final void testRunFailed(FailureDescription failure)
final void testRunFailed(String errorMessage)
void testRunStarted(String runName, int testCount, int attemptNumber)
final void testRunStarted(String runName, int testCount)
void testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
final void testStarted(TestDescription test, long startTime)
final void testStarted(TestDescription test)

保護されたメソッド

TestRecordProto.ChildReference createModuleChildReference(TestRecordProto.TestRecord record)

モジュールの子参照を作成します。

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

ProtoResultReporter

public ProtoResultReporter ()

パブリック メソッド

invocationEnded

public final void invocationEnded (long elapsedTime)

パラメータ
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

パラメータ
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

パラメータ
cause Throwable

invocationStarted

public final void invocationStarted (IInvocationContext context)

パラメータ
context IInvocationContext

logAssociation

public final void logAssociation (String dataName, 
                LogFile logFile)

パラメータ
dataName String

logFile LogFile

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

すべての結果を含む最終プロトコルの処理。

パラメータ
finalRecord TestRecordProto.TestRecord: すべての呼び出し結果を含む最終的な proto。

processStartInvocation

public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, 
                IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) が発生した後の部分呼び出しテスト レコード プロトコルの処理。

パラメータ
invocationStartRecord TestRecordProto.TestRecord: invocationStart の後に入力された部分プロトコル。

invocationContext IInvocationContext: 呼び出し IInvocationContext

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 発生後の確定済みテストケース レコード プロトコルの処理。

パラメータ
testCaseRecord TestRecordProto.TestRecord: テストケースを表す最終的な proto。

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(com.android.tradefed.result.TestDescription, long) が発生した後の部分的なテストケース レコード プロトコルの処理。

パラメータ
testCaseStartedRecord TestRecordProto.TestRecord: テストケースを表す部分プロト。

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() が発生した後の、確定済みのモジュール レコード proto の処理。

パラメータ
moduleRecord TestRecordProto.TestRecord: モジュールを表す最終的な proto。

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(com.android.tradefed.invoker.IInvocationContext) が発生した後の部分モジュール レコード プロトコルの処理。

パラメータ
moduleStartRecord TestRecordProto.TestRecord: モジュールを表す部分プロトコル。

processTestRunEnded

public void processTestRunEnded (TestRecordProto.TestRecord runRecord, 
                boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap) が発生した後の、確定済み実行レコード proto の処理。

パラメータ
runRecord TestRecordProto.TestRecord: 実行を表すファイナライズされたプロト。

moduleInProgress boolean: モジュールが進行中かどうか。

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) が発生した後の部分テスト実行レコード プロトコルの処理。

パラメータ
runStartedRecord TestRecordProto.TestRecord: 実行を表す部分プロトコル。

supportGranularResults

public boolean supportGranularResults ()

戻り値
boolean

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

パラメータ
test TestDescription

trace String

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

パラメータ
test TestDescription

failure FailureDescription

testEnded

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

パラメータ
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

パラメータ
test TestDescription

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                FailureDescription failure)

パラメータ
test TestDescription

failure FailureDescription

testFailed

public final void testFailed (TestDescription test, 
                String trace)

パラメータ
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

パラメータ
test TestDescription

testModuleEnded

public final void testModuleEnded ()

testModuleStarted

public final void testModuleStarted (IInvocationContext moduleContext)

パラメータ
moduleContext IInvocationContext

testRunEnded

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

パラメータ
elapsedTimeMillis long

runMetrics

testRunFailed

public final void testRunFailed (FailureDescription failure)

パラメータ
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

パラメータ
errorMessage String

testRunStarted

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

パラメータ
runName String

testCount int

attemptNumber int

testRunStarted

public final 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

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

パラメータ
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

パラメータ
test TestDescription

保護されたメソッド

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

モジュールの子参照を作成します。

パラメータ
record TestRecordProto.TestRecord

戻り値
TestRecordProto.ChildReference