StreamProtoResultReporter

public final class StreamProtoResultReporter
extends ProtoResultReporter

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


Implementacja ProtoResultReporter

Podsumowanie

Stałe

String PROTO_REPORT_PORT_OPTION

Publiczne konstruktory

StreamProtoResultReporter()

Metody publiczne

Integer getProtoReportPort()
void processFinalInvocationLogs(TestRecordProto.TestRecord invocationLogs)

Użyj rekordu wywołania, aby wysłać po kolei wszystkie końcowe logi wywołania.

void processFinalProto(TestRecordProto.TestRecord finalRecord)

Obsługa końcowego protokołu ze wszystkimi wynikami.

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)

Obsługa częściowego rekordu proto wywołania testu po wystąpieniu błędu invocationStarted(com.android.tradefed.invoker.IInvocationContext).

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

Obsługa ostatecznego rekordu proto przypadku testowego po wystąpieniu zdarzenia ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)).

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

Obsługa częściowego rekordu protokołu testu po wystąpieniu błędu testStarted(com.android.tradefed.result.TestDescription, long).

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

Obsługa ostatecznej wersji protokołu rekordu modułu po wystąpieniu testModuleEnded().

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

Obsługa częściowego protokołu rekordu modułu po wystąpieniu testModuleStarted(com.android.tradefed.invoker.IInvocationContext).

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Obsługa ostatecznego rekordu uruchomienia po wystąpieniu zdarzenia ERROR(/#testRunEnded(long,HashMap)).

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

Obsługa częściowego rekordu proto przebiegu testu po wystąpieniu testRunStarted(String, int).

void setProtoReportPort(Integer portValue)

Metody chronione

void closeSocket()

Stałe

PROTO_REPORT_PORT_OPTION

public static final String PROTO_REPORT_PORT_OPTION

Stała wartość: „proto-report-port”

Publiczne konstruktory

StreamProtoResultReporter

public StreamProtoResultReporter ()

Metody publiczne

getProtoReportPort

public Integer getProtoReportPort ()

Zwroty
Integer

processFinalInvocationLogs

public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)

Użyj rekordu wywołania, aby wysłać po kolei wszystkie końcowe logi wywołania.

Parametry
invocationLogs TestRecordProto.TestRecord: ostateczny proto reprezentujący wywołanie.

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Obsługa końcowego protokołu ze wszystkimi wynikami.

Parametry
finalRecord TestRecordProto.TestRecord: ostateczna wersja protokołu ze wszystkimi wynikami wywołania.

processStartInvocation

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

Obsługa częściowego rekordu proto wywołania testu po wystąpieniu błędu invocationStarted(com.android.tradefed.invoker.IInvocationContext).

Parametry
invocationStartRecord TestRecordProto.TestRecord: Częściowy protokół wypełniony po wywołaniu invocationStart.

context IInvocationContext: wywołanie IInvocationContext.

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Obsługa ostatecznego rekordu proto przypadku testowego po wystąpieniu zdarzenia ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)).

Parametry
testCaseRecord TestRecordProto.TestRecord: Sfinalizowany proto reprezentujący przypadek testowy.

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Obsługa częściowego rekordu protokołu testu po wystąpieniu błędu testStarted(com.android.tradefed.result.TestDescription, long).

Parametry
testCaseStartedRecord TestRecordProto.TestRecord: Częściowy proto reprezentujący element testowania.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Obsługa ostatecznej wersji protokołu rekordu modułu po wystąpieniu testModuleEnded().

Parametry
moduleRecord TestRecordProto.TestRecord: ostateczna wersja protokołu reprezentująca moduł.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Obsługa częściowego protokołu rekordu modułu po wystąpieniu testModuleStarted(com.android.tradefed.invoker.IInvocationContext).

Parametry
moduleStartRecord TestRecordProto.TestRecord: częściowy protokół reprezentujący moduł.

processTestRunEnded

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

Obsługa ostatecznego rekordu uruchomienia po wystąpieniu zdarzenia ERROR(/#testRunEnded(long,HashMap)).

Parametry
runRecord TestRecordProto.TestRecord: ostateczny prototyp reprezentujący uruchomienie.

moduleInProgress boolean: czy moduł jest w toku.

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Obsługa częściowego rekordu proto przebiegu testu po wystąpieniu testRunStarted(String, int).

Parametry
runStartedRecord TestRecordProto.TestRecord: częściowy protokół reprezentujący uruchomienie.

setProtoReportPort

public void setProtoReportPort (Integer portValue)

Parametry
portValue Integer

Metody chronione

closeSocket

protected void closeSocket ()