Google is committed to advancing racial equity for Black communities. See how.
Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

ProtoResultReporter

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

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


Reporter hasil membuat protobuf TestRecord dengan semua hasil di dalamnya. Harus diperluas untuk menangani apa yang harus dilakukan dengan proto terakhir dalam processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) .

Ringkasan

Konstruktor publik

ProtoResultReporter ()

Metode publik

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)

Penanganan proto akhir dengan semua hasil.

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

Penanganan proto rekaman pengujian pemanggilan parsial setelah invocationStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.

void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Penanganan proto rekaman kasus pengujian yang diselesaikan setelah ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) terjadi.

void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Penanganan proto catatan kasus uji parsial setelah testStarted(com.android.tradefed.result.TestDescription, long) terjadi.

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Penanganan proto rekaman modul yang diselesaikan setelah testModuleEnded() terjadi.

void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Penanganan proto rekaman modul parsial setelah testModuleStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Penanganan proto run record yang diselesaikan setelah ITestLifeCycleReceiver.testRunEnded(long, HashMap) terjadi.

void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Penanganan proto rekaman uji coba parsial setelah testRunStarted(String, int) terjadi.

boolean supportGranularResults ()
final void testAssumptionFailure (TestDescription test, String trace)
final void testAssumptionFailure (TestDescription test, FailureDescription failure)
final void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)
void testEnded (TestDescription test, testMetrics) 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) 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)

Konstruktor publik

ProtoResultReporter

public ProtoResultReporter ()

Metode publik

invocationEnded

public final void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

seruanFailed

public void invocationFailed (FailureDescription failure)

Parameter
failure FailureDescription

seruanFailed

public void invocationFailed (Throwable cause)

Parameter
cause Throwable

invocationStarted

public final void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

logAssociation

public final void logAssociation (String dataName, 
                LogFile logFile)

Parameter
dataName String

logFile LogFile

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Penanganan proto akhir dengan semua hasil.

Parameter
finalRecord TestRecordProto.TestRecord : Proto yang diselesaikan dengan semua hasil pemanggilan.

processStartInvocation

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

Penanganan proto rekaman pengujian pemanggilan parsial setelah invocationStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.

Parameter
invocationStartRecord TestRecordProto.TestRecord : Proto parsial diisi setelah invocationStart.

invocationContext IInvocationContext : Permintaan IInvocationContext .

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Penanganan proto rekaman kasus pengujian yang diselesaikan setelah ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) terjadi.

Parameter
testCaseRecord TestRecordProto.TestRecord : Proto yang diselesaikan mewakili kasus uji.

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Penanganan proto catatan kasus uji parsial setelah testStarted(com.android.tradefed.result.TestDescription, long) terjadi.

Parameter
testCaseStartedRecord TestRecordProto.TestRecord : Proto parsial mewakili kasus uji.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Penanganan proto rekaman modul yang diselesaikan setelah testModuleEnded() terjadi.

Parameter
moduleRecord TestRecordProto.TestRecord : Proto yang diselesaikan mewakili modul.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Penanganan proto rekaman modul parsial setelah testModuleStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.

Parameter
moduleStartRecord TestRecordProto.TestRecord : Proto parsial mewakili modul.

processTestRunEnded

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

Penanganan proto run record yang diselesaikan setelah ITestLifeCycleReceiver.testRunEnded(long, HashMap) terjadi.

Parameter
runRecord TestRecordProto.TestRecord : Proto yang diselesaikan mewakili proses.

moduleInProgress boolean : apakah modul sedang berlangsung atau tidak.

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Penanganan proto rekaman uji coba parsial setelah testRunStarted(String, int) terjadi.

Parameter
runStartedRecord TestRecordProto.TestRecord : Proto parsial yang mewakili proses.

supportGranularResults

public boolean supportGranularResults ()

Kembali
boolean

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testEnded

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

Parameter
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parameter
test TestDescription

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testFailed

public final void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testIabaikan

public final void testIgnored (TestDescription test)

Parameter
test TestDescription

testModuleEnded

public final void testModuleEnded ()

testModuleStarted

public final void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnded

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Parameter
elapsedTimeMillis long

runMetrics

testRunFailed

public final void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

Parameter
errorMessage String

testRunStarted

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

Parameter
runName String

testCount int

attemptNumber int

testRunStarted

public final void testRunStarted (String runName, 
                int testCount)

Parameter
runName String

testCount int

testRunStarted

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

Parameter
runName String

testCount int

attemptNumber int

startTime long

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

Parameter
test TestDescription