Sous-processusResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
?? com.android.tradefed.result.SubprocessResultsReporter


Met en œuvre ITestInvocationListener à préciser comme result_reporter et en avant de la sous - processus les résultats des tests, essais de fonctionnement, les invocations de test.

Sommaire

Constructeurs publics

SubprocessResultsReporter ()

Méthodes publiques

void close ()

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void printEvent (String key, Object event)

Helper pour imprimer la clé de l'événement, puis l'objet json.

void setOutputTestLog (boolean outputTestLog)

Définit si nous devons ou non afficher le test enregistré ou non.

boolean supportGranularResults ()
void testAssumptionFailure (TestDescription testId, String trace)

void testAssumptionFailure (TestDescription testId, FailureDescription failure)

void testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics)

void testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics)

void testFailed (TestDescription testId, FailureDescription failure)

void testFailed (TestDescription testId, String reason)

void testIgnored (TestDescription testId)

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String reason)

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

void testRunStarted (String runName, int testCount)

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

void testRunStopped (long arg0)

void testStarted (TestDescription testId, long startTime)

void testStarted (TestDescription testId)

Constructeurs publics

Sous-processusResultsReporter

public SubprocessResultsReporter ()

Méthodes publiques

proche

public void close ()

obtenirRésumé

public TestSummary getSummary ()

Retour
TestSummary

invocationTerminé

public 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 void invocationStarted (IInvocationContext context)

Paramètres
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Paramètres
dataName String

logFile LogFile

imprimerEvénement

public void printEvent (String key, 
                Object event)

Helper pour imprimer la clé de l'événement, puis l'objet json.

Paramètres
key String

event Object

setOutputTestLog

public void setOutputTestLog (boolean outputTestLog)

Définit si nous devons ou non afficher le test enregistré ou non.

Paramètres
outputTestLog boolean

supportGranularResults

public boolean supportGranularResults ()

Retour
boolean

testAssomptionÉchec

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Paramètres
testId TestDescription

trace String

testAssomptionÉchec

public void testAssumptionFailure (TestDescription testId, 
                FailureDescription failure)

Paramètres
testId TestDescription

failure FailureDescription

testTerminé

public void testEnded (TestDescription testId, 
                long endTime, 
                 metrics)

Paramètres
testId TestDescription

endTime long

metrics

testTerminé

public void testEnded (TestDescription testId, 
                 metrics)

Paramètres
testId TestDescription

metrics

test échoué

public void testFailed (TestDescription testId, 
                FailureDescription failure)

Paramètres
testId TestDescription

failure FailureDescription

test échoué

public void testFailed (TestDescription testId, 
                String reason)

Paramètres
testId TestDescription

reason String

testIgnoré

public void testIgnored (TestDescription testId)

Paramètres
testId TestDescription

testLog

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

Paramètres
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleTerminé

public void testModuleEnded ()

testModuleDémarré

public void testModuleStarted (IInvocationContext moduleContext)

Paramètres
moduleContext IInvocationContext

testExécutéTerminé

public void testRunEnded (long time, 
                 runMetrics)

Paramètres
time long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Paramètres
failure FailureDescription

testRunFailed

public void testRunFailed (String reason)

Paramètres
reason String

testRunStarted

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

Paramètres
runName String

testCount int

attemptNumber int

testRunStarted

public 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

testExécutéArrêté

public void testRunStopped (long arg0)

Paramètres
arg0 long

testDémarré

public void testStarted (TestDescription testId, 
                long startTime)

Paramètres
testId TestDescription

startTime long

testDémarré

public void testStarted (TestDescription testId)

Paramètres
testId TestDescription