ModuleProtoResultReporter

public class ModuleProtoResultReporter
extends FileProtoResultReporter

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


Reporter wyników, który ma raportować tylko wyniki na poziomie modułu. Ten moduł nie obsługuje ponownego wejścia. Celem tego reportera jest przede wszystkim buforowanie na poziomie modułu.

Podsumowanie

Stałe

String INVOCATION_ID_KEY

Konstruktory publiczne

ModuleProtoResultReporter()
ModuleProtoResultReporter(IInvocationContext mainInvocationContext, boolean granularResults)

Metody publiczne

static Map<String, String> parseResultsMetadata(File protoResults)

Narzędzie do analizowania, które wyodrębnia metadane, które mogły zostać przesłane

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

Obsługa sfinalizowanego proto rekordu elementu testowania po wystąpieniu testEnded(TestDescription,long,HashMap).

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

Obsługa sfinalizowanego proto rekordu modułu po wystąpieniu testModuleEnded().

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Obsługa sfinalizowanego proto rekordu uruchomienia po wystąpieniu testRunEnded(long,HashMap).

boolean reportGranularResults()
void reportStopCaching()
boolean stopCaching()

Metody chronione

void afterModuleEnd()
void beforeModuleStart()
IInvocationContext createCachedContext()

Stałe

INVOCATION_ID_KEY

public static final String INVOCATION_ID_KEY

Wartość stała: "invocation_id"

Konstruktory publiczne

ModuleProtoResultReporter

public ModuleProtoResultReporter ()

ModuleProtoResultReporter

public ModuleProtoResultReporter (IInvocationContext mainInvocationContext, 
                boolean granularResults)

Parametry
mainInvocationContext IInvocationContext

granularResults boolean

Metody publiczne

parseResultsMetadata

public static Map<String, String> parseResultsMetadata (File protoResults)

Narzędzie do analizowania, które wyodrębnia metadane, które mogły zostać przesłane

Parametry
protoResults File

Zwraca
Map<String, String>

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Obsługa sfinalizowanego proto rekordu elementu testowania po wystąpieniu testEnded(TestDescription,long,HashMap).

Parametry
testCaseRecord TestRecordProto.TestRecord: sfinalizowane proto reprezentujące element testowania.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Obsługa sfinalizowanego proto rekordu modułu po wystąpieniu testModuleEnded().

Parametry
moduleRecord TestRecordProto.TestRecord: sfinalizowane proto reprezentujące moduł.

processTestRunEnded

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

Obsługa sfinalizowanego proto rekordu uruchomienia po wystąpieniu testRunEnded(long,HashMap).

Parametry
runRecord TestRecordProto.TestRecord: sfinalizowane proto reprezentujące uruchomienie.

moduleInProgress boolean: czy moduł jest w trakcie wykonywania.

reportGranularResults

public boolean reportGranularResults ()

Zwraca
boolean

reportStopCaching

public void reportStopCaching ()

stopCaching

public boolean stopCaching ()

Zwraca
boolean

Metody chronione

afterModuleEnd

protected void afterModuleEnd ()

beforeModuleStart

protected void beforeModuleStart ()

createCachedContext

protected IInvocationContext createCachedContext ()

Zwraca
IInvocationContext