SubprocessResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

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


Implementuje ITestInvocationListener, który ma być określony jako result_reporter, i przekazuje z podprocesu wyniki testów, testów i wywołań testów.

Podsumowanie

Konstruktory publiczne

SubprocessResultsReporter()

Metody publiczne

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)

Funkcja pomocnicza do drukowania klucza zdarzenia, a potem obiektu JSON.

void setOutputTestLog(boolean outputTestLog)

Określa, czy test powinien być zapisany.

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

void testAssumptionFailure(TestDescription testId, FailureDescription failure)

void testEnded(TestDescription testId, long endTime, metrics)

void 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)

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)

Konstruktory publiczne

SubprocessResultsReporter

public SubprocessResultsReporter ()

Metody publiczne

zamknij

public void close ()

getSummary

public TestSummary getSummary ()

Zwroty
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

Parametry
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Parametry
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parametry
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parametry
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Parametry
dataName String

logFile LogFile

printEvent

public void printEvent (String key, 
                Object event)

Funkcja pomocnicza do drukowania klucza zdarzenia, a potem obiektu JSON.

Parametry
key String

event Object

setOutputTestLog

public void setOutputTestLog (boolean outputTestLog)

Określa, czy test powinien być zapisany.

Parametry
outputTestLog boolean

supportGranularResults

public boolean supportGranularResults ()

Zwroty
boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Parametry
testId TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                FailureDescription failure)

Parametry
testId TestDescription

failure FailureDescription

testEnded

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

Parametry
testId TestDescription

endTime long

metrics

testEnded

public void testEnded (TestDescription testId, 
                 metrics)

Parametry
testId TestDescription

metrics

testFailed

public void testFailed (TestDescription testId, 
                FailureDescription failure)

Parametry
testId TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription testId, 
                String reason)

Parametry
testId TestDescription

reason String

testIgnored

public void testIgnored (TestDescription testId)

Parametry
testId TestDescription

testLog

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

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parametry
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

Parametry
time long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parametry
failure FailureDescription

testRunFailed

public void testRunFailed (String reason)

Parametry
reason String

testRunStarted

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

Parametry
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parametry
runName String

testCount int

testRunStarted

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

Parametry
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long arg0)

Parametry
arg0 long

testStarted

public void testStarted (TestDescription testId, 
                long startTime)

Parametry
testId TestDescription

startTime long

testStarted

public void testStarted (TestDescription testId)

Parametry
testId TestDescription