Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.

LegacyPodprocesReporter wyników

public final class LegacySubprocessResultsReporter
extends SubprocessResultsReporter

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


Zamrożona implementacja reportera wyników podprocesów, która powinna pozostać kompatybilna z wcześniejszymi wersjami TF/CTS (np. 8+), pomimo zmian w jego nadklasie.

Ten reporter może być dynamicznie wstrzykiwany, aby umożliwić raportowanie podprocesów w starych zestawach testów opartych na TF.

Streszczenie

Konstruktorzy publiczni

LegacySubprocessResultsReporter ()

Chronieni konstruktorzy

LegacySubprocessResultsReporter (boolean installHandler)

Metody publiczne

void invocationEnded (long elapsedTime)

Informuje, że wywołanie zostało zakończone pomyślnie lub z powodu błędu.

void invocationFailed (Throwable cause)

Zgłasza niekompletne wywołanie z powodu jakiegoś błędu.

void invocationStarted ( IBuildInfo buildInfo)
void logAssociation (String dataName, LogFile logFile)

W niektórych przypadkach dziennik musi być silnie powiązany z przypadkami testowymi, ale możliwość zrobienia tego w bezpośrednim testLogSaved(String, com.android.tradefed.result.LogDataType, com.android.tradefed.result.InputStreamSource, com.android.tradefed.result.LogFile) nie jest możliwe.

void setLogSaver ( ILogSaver logSaver)
void testAssumptionFailure (TestIdentifier testId, String trace)
void testEnded (TestIdentifier testId, metrics) testEnded (TestIdentifier testId, metrics)
void testEnded (TestIdentifier testId, long endTime, metrics) testEnded (TestIdentifier testId, long endTime, metrics)
void testFailed (TestIdentifier testId, String reason)
void testIgnored (TestIdentifier testId)
void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
void testModuleEnded ()

Zgłasza koniec uruchomienia modułu.

void testModuleStarted ( IInvocationContext moduleContext)

Zgłasza początek działania modułu.

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

Raportuje koniec uruchomienia testowego.

void testRunFailed (String reason)

Testowanie raportów nie powiodło się z powodu błędu krytycznego.

void testRunStarted (String runName, int testCount)

Raportuje początek uruchomienia testowego.

void testStarted (TestIdentifier testId)
void testStarted (TestIdentifier testId, long startTime)

Konstruktorzy publiczni

LegacyPodprocesReporter wyników

public LegacySubprocessResultsReporter ()

Chronieni konstruktorzy

LegacyPodprocesReporter wyników

protected LegacySubprocessResultsReporter (boolean installHandler)

Parametry
installHandler boolean

Metody publiczne

inwokacjaZakończona

public void invocationEnded (long elapsedTime)

Informuje, że wywołanie zostało zakończone pomyślnie lub z powodu błędu.

Zostanie automatycznie wywołany przez platformę TradeFederation.

Parametry
elapsedTime long : czas trwania wywołania w ms

wywołanie nie powiodło się

public void invocationFailed (Throwable cause)

Zgłasza niekompletne wywołanie z powodu jakiegoś błędu.

Zostanie automatycznie wywołany przez platformę TradeFederation.

Parametry
cause Throwable : Throwable przyczyna niepowodzenia

wywołanieRozpoczęto

public void invocationStarted (IBuildInfo buildInfo)

Parametry
buildInfo IBuildInfo

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

W niektórych przypadkach dziennik musi być silnie powiązany z przypadkami testowymi, ale możliwość zrobienia tego w bezpośrednim testLogSaved(String, com.android.tradefed.result.LogDataType, com.android.tradefed.result.InputStreamSource, com.android.tradefed.result.LogFile) nie jest możliwe. W ten sposób to wywołanie zwrotne umożliwia jawne zapewnienie silnego skojarzenia.

Parametry
dataName String : nazwa danych

logFile LogFile : LogFile , który został wcześniej zarejestrowany i powinien być powiązany z przypadkiem testowym.

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Parametry
logSaver ILogSaver

testZałożenieNiepowodzenie

public void testAssumptionFailure (TestIdentifier testId, 
                String trace)

Parametry
testId TestIdentifier

trace String

testZakończony

public void testEnded (TestIdentifier testId, 
                 metrics)

Parametry
testId TestIdentifier

metrics

testZakończony

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

Parametry
testId TestIdentifier

endTime long

metrics

Test nieudany

public void testFailed (TestIdentifier testId, 
                String reason)

Parametry
testId TestIdentifier

reason String

testIgnorowane

public void testIgnored (TestIdentifier testId)

Parametry
testId TestIdentifier

testLogZapisano

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModułZakończony

public void testModuleEnded ()

Zgłasza koniec uruchomienia modułu.

testModułUruchomiony

public void testModuleStarted (IInvocationContext moduleContext)

Zgłasza początek działania modułu. To wywołanie zwrotne jest powiązane z testModuleEnded() i jest opcjonalne w sekwencji. Jest używany tylko podczas biegu, który używa modułów: biegaczy opartych na pakiecie.

Parametry
moduleContext IInvocationContext : IInvocationContext modułu.

TestUruchomionyZakończony

public void testRunEnded (long time, 
                 runMetrics)

Raportuje koniec uruchomienia testowego. FIXME: Nie możemy mieć dwóch interfejsów Map<> o różnych typach, więc musimy tutaj użyć HashMap.

Parametry
time long : urządzenie zgłosiło czas, który upłynął, w milisekundach

runMetrics : pary klucz-wartość zgłoszone na koniec testu z Metric .

TestUruchomie się nie powiódł

public void testRunFailed (String reason)

Testowanie raportów nie powiodło się z powodu błędu krytycznego.

Parametry
reason String : String opisujący przyczynę niepowodzenia uruchomienia.

testUruchomiony

public void testRunStarted (String runName, 
                int testCount)

Raportuje początek uruchomienia testowego.

Parametry
runName String : nazwa uruchomienia testowego

testCount int : całkowita liczba testów w przebiegu testowym

testRozpoczęto

public void testStarted (TestIdentifier testId)

Parametry
testId TestIdentifier

testRozpoczęto

public void testStarted (TestIdentifier testId, 
                long startTime)

Parametry
testId TestIdentifier

startTime long