LegacySubprocessResultsReporter

public final class LegacySubprocessResultsReporter
extends SubprocessResultsReporter

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


Zamrożona implementacja narzędzia do raportowania wyników podprocesu, która powinna zachować zgodność z wcześniejszymi wersjami TF/CTS (np. 8+), pomimo zmian w klasie nadrzędnej.

Ten reporter może być dynamicznie wstrzykiwany, aby włączyć raportowanie podprocesów w starszych pakietach testowych opartych na TF.

Podsumowanie

Publiczne konstruktory

LegacySubprocessResultsReporter()

Konstruktory chronione

LegacySubprocessResultsReporter(boolean installHandler)

Metody publiczne

void invocationEnded(long elapsedTime)

Informuje, że wywołanie zostało zakończone, niezależnie od tego, czy zakończyło się ono pomyślnie, czy z powodu błędu.

void invocationFailed(Throwable cause)

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

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

W niektórych przypadkach dziennik musi być ściśle powiązany z przypadkami testowymi, ale nie można tego zrobić w bezpośrednim wywołaniu zwrotnym testLogSaved(String, com.android.tradefed.result.LogDataType, com.android.tradefed.result.InputStreamSource, com.android.tradefed.result.LogFile).

void setLogSaver(ILogSaver logSaver)
void testAssumptionFailure(TestIdentifier testId, String trace)
void testEnded(TestIdentifier testId, metrics)
void 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 zakończenie działania modułu.

void testModuleStarted(IInvocationContext moduleContext)

Zgłasza rozpoczęcie działania modułu.

void testRunEnded(long time, runMetrics)

Raport na koniec testu.

void testRunFailed(String reason)

Nie udało się ukończyć testu raportów z powodu błędu krytycznego.

void testRunStarted(String runName, int testCount)

Zgłasza rozpoczęcie testu.

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

Publiczne konstruktory

LegacySubprocessResultsReporter

public LegacySubprocessResultsReporter ()

Konstruktory chronione

LegacySubprocessResultsReporter

protected LegacySubprocessResultsReporter (boolean installHandler)

Parametry
installHandler boolean

Metody publiczne

invocationEnded

public void invocationEnded (long elapsedTime)

Informuje, że wywołanie zostało zakończone, niezależnie od tego, czy zakończyło się ono pomyślnie, czy z powodu błędu.

Zostanie automatycznie wywołana przez platformę TradeFederation.

Parametry
elapsedTime long: czas trwania wywołania w milisekundach

invocationFailed

public void invocationFailed (Throwable cause)

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

Zostanie automatycznie wywołana przez platformę TradeFederation.

Parametry
cause Throwable: Throwable przyczyna niepowodzenia

invocationStarted

public void invocationStarted (IBuildInfo buildInfo)

Parametry
buildInfo IBuildInfo

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

W niektórych przypadkach dziennik musi być ściśle powiązany z przypadkami testowymi, ale nie można tego zrobić w bezpośrednim wywołaniu zwrotnym testLogSaved(String, com.android.tradefed.result.LogDataType, com.android.tradefed.result.InputStreamSource, com.android.tradefed.result.LogFile). Dzięki temu wywołaniu zwrotnemu można wyraźnie określić silne powiązanie.

Parametry
dataName String: nazwa danych

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

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Parametry
logSaver ILogSaver

testAssumptionFailure

public void testAssumptionFailure (TestIdentifier testId, 
                String trace)

Parametry
testId TestIdentifier

trace String

testEnded

public void testEnded (TestIdentifier testId, 
                 metrics)

Parametry
testId TestIdentifier

metrics

testEnded

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

Parametry
testId TestIdentifier

endTime long

metrics

testFailed

public void testFailed (TestIdentifier testId, 
                String reason)

Parametry
testId TestIdentifier

reason String

testIgnored

public void testIgnored (TestIdentifier testId)

Parametry
testId TestIdentifier

testLogSaved

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

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

Zgłasza zakończenie działania modułu.

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Zgłasza rozpoczęcie działania modułu. To wywołanie zwrotne jest powiązane z testModuleEnded() i jest opcjonalne w sekwencji. Jest używany tylko podczas uruchamiania modułów: narzędzi do uruchamiania opartych na pakietach.

Parametry
moduleContext IInvocationContext: IInvocationContext modułu.

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

Raport na koniec testu.

Parametry
time long: czas, który upłynął od ostatniego zgłoszenia przez urządzenie (w milisekundach)

runMetrics : pary klucz-wartość zgłaszane na końcu testu

testRunFailed

public void testRunFailed (String reason)

Nie udało się ukończyć testu raportów z powodu błędu krytycznego.

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

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Zgłasza rozpoczęcie testu.

Parametry
runName String: nazwa testu,

testCount int: łączna liczba testów w teście

testStarted

public void testStarted (TestIdentifier testId)

Parametry
testId TestIdentifier

testStarted

public void testStarted (TestIdentifier testId, 
                long startTime)

Parametry
testId TestIdentifier

startTime long