Оптимизируйте свои подборки Сохраняйте и классифицируйте контент в соответствии со своими настройками.

SubprocessResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

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


Реализует ITestInvocationListener быть указано как result_reporter и вперед от подпроцесса результаты тестов, тестовых прогонов, тестовых вызовов.

Резюме

Общественные конструкторы

SubprocessResultsReporter ()

Публичные методы

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)

Помощник для печати ключа события, а затем объекта json.

void setOutputTestLog (boolean outputTestLog)

Устанавливает, должны ли мы выводить тест в журнал или нет.

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)

Общественные конструкторы

SubprocessResultsReporter

public SubprocessResultsReporter ()

Публичные методы

близко

public void close ()

getSummary

public TestSummary getSummary ()

Возврат
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

Параметры
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Параметры
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Параметры
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Параметры
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Параметры
dataName String

logFile LogFile

printEvent

public void printEvent (String key, 
                Object event)

Помощник для печати ключа события, а затем объекта json.

Параметры
key String

event Object

setOutputTestLog

public void setOutputTestLog (boolean outputTestLog)

Устанавливает, должны ли мы выводить тест в журнал или нет.

Параметры
outputTestLog boolean

supportGranularResults

public boolean supportGranularResults ()

Возврат
boolean

testAssumingFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Параметры
testId TestDescription

trace String

testAssumingFailure

public void testAssumptionFailure (TestDescription testId, 
                FailureDescription failure)

Параметры
testId TestDescription

failure FailureDescription

testEnded

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

Параметры
testId TestDescription

endTime long

metrics

testEnded

public void testEnded (TestDescription testId, 
                 metrics)

Параметры
testId TestDescription

metrics

testFailed

public void testFailed (TestDescription testId, 
                FailureDescription failure)

Параметры
testId TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription testId, 
                String reason)

Параметры
testId TestDescription

reason String

testIgnored

public void testIgnored (TestDescription testId)

Параметры
testId TestDescription

testLog

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

Параметры
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Параметры
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

Параметры
time long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Параметры
failure FailureDescription

testRunFailed

public void testRunFailed (String reason)

Параметры
reason String

testRunStarted

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

Параметры
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Параметры
runName String

testCount int

testRunStarted

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

Параметры
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long arg0)

Параметры
arg0 long

testStarted

public void testStarted (TestDescription testId, 
                long startTime)

Параметры
testId TestDescription

startTime long

testStarted

public void testStarted (TestDescription testId)

Параметры
testId TestDescription