ProtoResultReporter

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

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


Le rapporteur de résultats crée un protobuf TestRecord avec tous les résultats à l'intérieur. Doit être étendu pour gérer quoi faire avec le proto final dans processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) .

Résumé

Constructeurs publics

ProtoResultReporter ()

Méthodes publiques

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)

Gestion du proto final avec tous les résultats.

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

La gestion du protocole d'enregistrement de test d'invocation partielle après invocationStarted(com.android.tradefed.invoker.IInvocationContext) s'est produite.

void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Gestion du prototype d'enregistrement de scénario de test finalisé après ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) .

void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Gestion du prototype d'enregistrement de scénario de test partiel après testStarted(com.android.tradefed.result.TestDescription, long) .

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Gestion du prototype d'enregistrement de module finalisé après que testModuleEnded() se soit produit.

void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Gestion du prototype d'enregistrement de module partiel après testModuleStarted(com.android.tradefed.invoker.IInvocationContext) .

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Gestion du protocole d'enregistrement d'exécution finalisé après ITestLifeCycleReceiver.testRunEnded(long, HashMap) .

void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Gestion du protocole d'enregistrement d'exécution de test partiel après que testRunStarted(String, int) se soit produit.

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)

Méthodes protégées

TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Crée une référence enfant pour un module.

Constructeurs publics

ProtoResultReporter

public ProtoResultReporter ()

Méthodes publiques

invocationFin

public final void invocationEnded (long elapsedTime)

Paramètres
elapsedTime long

échec de l'appel

public void invocationFailed (FailureDescription failure)

Paramètres
failure FailureDescription

échec de l'appel

public void invocationFailed (Throwable cause)

Paramètres
cause Throwable

invocationDémarrée

public final void invocationStarted (IInvocationContext context)

Paramètres
context IInvocationContext

journalAssociation

public final void logAssociation (String dataName, 
                LogFile logFile)

Paramètres
dataName String

logFile LogFile

processusFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Gestion du proto final avec tous les résultats.

Paramètres
finalRecord TestRecordProto.TestRecord : Le proto finalisé avec tous les résultats de l'invocation.

processStartInvocation

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

La gestion du protocole d'enregistrement de test d'invocation partielle après invocationStarted(com.android.tradefed.invoker.IInvocationContext) s'est produite.

Paramètres
invocationStartRecord TestRecordProto.TestRecord : Le proto partiel renseigné après l'invocationStart.

invocationContext IInvocationContext : L'invocation IInvocationContext .

processusTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Gestion du prototype d'enregistrement de scénario de test finalisé après ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) .

Paramètres
testCaseRecord TestRecordProto.TestRecord : Le proto finalisé représentant un scénario de test.

processusTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Gestion du prototype d'enregistrement de scénario de test partiel après testStarted(com.android.tradefed.result.TestDescription, long) .

Paramètres
testCaseStartedRecord TestRecordProto.TestRecord : Le prototype partiel représentant le scénario de test.

processusTestModuleFin

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Gestion du prototype d'enregistrement de module finalisé après que testModuleEnded() se soit produit.

Paramètres
moduleRecord TestRecordProto.TestRecord : Le proto finalisé représentant le module.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Gestion du prototype d'enregistrement de module partiel après testModuleStarted(com.android.tradefed.invoker.IInvocationContext) .

Paramètres
moduleStartRecord TestRecordProto.TestRecord : Le prototype partiel représentant le module.

processusTestRunEnded

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

Gestion du protocole d'enregistrement d'exécution finalisé après ITestLifeCycleReceiver.testRunEnded(long, HashMap) .

Paramètres
runRecord TestRecordProto.TestRecord : Le prototype finalisé représentant l'exécution.

moduleInProgress boolean : si un module est en cours ou non.

processusTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Gestion du protocole d'enregistrement d'exécution de test partiel après que testRunStarted(String, int) se soit produit.

Paramètres
runStartedRecord TestRecordProto.TestRecord : Le prototype partiel représentant l'exécution.

supportGranularResults

public boolean supportGranularResults ()

Retour
boolean

testhypothèseéchec

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Paramètres
test TestDescription

trace String

testhypothèseéchec

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Paramètres
test TestDescription

failure FailureDescription

testFin

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

Paramètres
test TestDescription

endTime long

testMetrics

testFin

public void testEnded (TestDescription test, 
                 testMetrics)

Paramètres
test TestDescription

testMetrics

test échoué

public final void testFailed (TestDescription test, 
                FailureDescription failure)

Paramètres
test TestDescription

failure FailureDescription

test échoué

public final void testFailed (TestDescription test, 
                String trace)

Paramètres
test TestDescription

trace String

testIgnoré

public final void testIgnored (TestDescription test)

Paramètres
test TestDescription

testModuleFin

public final void testModuleEnded ()

testModuleDémarré

public final void testModuleStarted (IInvocationContext moduleContext)

Paramètres
moduleContext IInvocationContext

testRunEnded

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Paramètres
elapsedTimeMillis long

runMetrics

testRunFailed

public final void testRunFailed (FailureDescription failure)

Paramètres
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

Paramètres
errorMessage String

testRunStarted

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

Paramètres
runName String

testCount int

attemptNumber int

testRunStarted

public final void testRunStarted (String runName, 
                int testCount)

Paramètres
runName String

testCount int

testRunStarted

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

Paramètres
runName String

testCount int

attemptNumber int

startTime long

testDémarré

public final void testStarted (TestDescription test, 
                long startTime)

Paramètres
test TestDescription

startTime long

testDémarré

public final void testStarted (TestDescription test)

Paramètres
test TestDescription

Méthodes protégées

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Crée une référence enfant pour un module.

Paramètres
record TestRecordProto.TestRecord

Retour
TestRecordProto.ChildReference