LegacySubprocessResultsReporter
public
final
class
LegacySubprocessResultsReporter
extends SubprocessResultsReporter
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.SubprocessResultsReporter | |
| ↳ | com.android.tradefed.result.LegacySubprocessResultsReporter | |
zamrożoną implementację raportera wyników podprocesu, która powinna być zgodna z wcześniejszymi wersjami TF/CTS (np. 8 i nowszymi), pomimo zmian w superklasie.
Ten raportujący może być dynamicznie wstrzykiwany, aby umożliwić raportowanie podprocesów w starych zestawach testów opartych na TF.
Podsumowanie
Konstruktory publiczne | |
|---|---|
LegacySubprocessResultsReporter()
|
|
Chronione konstruktory | |
|---|---|
LegacySubprocessResultsReporter(boolean installHandler)
|
|
Metody publiczne | |
|---|---|
void
|
invocationEnded(long elapsedTime)
Informuje, że wywołanie zostało zakończone (z powodu błędu lub pomyślnie). |
void
|
invocationFailed(Throwable cause)
zgłasza niepełne wywołanie z powodu błędu. |
void
|
invocationStarted(IBuildInfo buildInfo)
|
void
|
logAssociation(String dataName, LogFile logFile)
W niektórych przypadkach log musi być silnie powiązany z przypadkami testowymi, ale nie można tego zrobić bezpośrednio w wywołaniu |
void
|
setLogSaver(ILogSaver logSaver)
|
void
|
testAssumptionFailure(TestIdentifier testId, String trace)
|
void
|
testEnded(TestIdentifier testId,
|
void
|
testEnded(TestIdentifier testId, long endTime,
|
void
|
testFailed(TestIdentifier testId, String reason)
|
void
|
testIgnored(TestIdentifier testId)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testModuleEnded()
Raportuje koniec wykonania modułu. |
void
|
testModuleStarted(IInvocationContext moduleContext)
zgłasza rozpoczęcie działania modułu. |
void
|
testRunEnded(long time,
Raportuje zakończenie testu. |
void
|
testRunFailed(String reason)
Nie udało się przeprowadzić testu raportów z powodu krytycznego błędu. |
void
|
testRunStarted(String runName, int testCount)
Raportuje rozpoczęcie testu. |
void
|
testStarted(TestIdentifier testId)
|
void
|
testStarted(TestIdentifier testId, long startTime)
|
Konstruktory publiczne
LegacySubprocessResultsReporter
public LegacySubprocessResultsReporter ()
Chronione konstruktory
LegacySubprocessResultsReporter
protected LegacySubprocessResultsReporter (boolean installHandler)
| Parametry | |
|---|---|
installHandler |
boolean |
Metody publiczne
invocationEnded
public void invocationEnded (long elapsedTime)
Informuje, że wywołanie zostało zakończone (z powodu błędu lub pomyślnie).
Będzie wywoływany automatycznie przez platformę TradeFederation.
| Parametry | |
|---|---|
elapsedTime |
long: upłynął czas wywołania w ms |
invocationFailed
public void invocationFailed (Throwable cause)
zgłasza niepełne wywołanie z powodu błędu.
Będzie wywoływany automatycznie przez platformę TradeFederation.
| Parametry | |
|---|---|
cause |
Throwable: przyczyna niepowodzenia Throwable |
invocationStarted
public void invocationStarted (IBuildInfo buildInfo)
| Parametry | |
|---|---|
buildInfo |
IBuildInfo |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)W niektórych przypadkach log musi być silnie powiązany z przypadkami testowymi, ale nie można tego zrobić bezpośrednio w wywołaniu 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 powiązać dane.
| Parametry | |
|---|---|
dataName |
String: nazwa danych |
logFile |
LogFile: LogFile, który został wcześniej zarejestrowany i powinien być powiązany z przypadkiem testowym. |
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 ()
Raportuje koniec wykonania 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 wykonywania testu, który korzysta z modułów: modułów opartych na zestawach.
| Parametry | |
|---|---|
moduleContext |
IInvocationContext: IInvocationContext modułu. |
testRunEnded
public void testRunEnded (long time,
runMetrics) Raportuje zakończenie testu.
| Parametry | |
|---|---|
time |
long: czas upłynął, milisekundy zgłoszone przez urządzenie |
runMetrics |
: pary klucz-wartość zgłoszone na końcu wykonania testu |
testRunFailed
public void testRunFailed (String reason)
Nie udało się przeprowadzić testu raportów z powodu krytycznego błędu.
| Parametry | |
|---|---|
reason |
String: String opisujący przyczynę niepowodzenia wykonania. |
testRunStarted
public void testRunStarted (String runName,
int testCount)Raportuje rozpoczęcie testu.
| Parametry | |
|---|---|
runName |
String: nazwa testu; |
testCount |
int: łączna liczba testów w sesji testowej |
testStarted
public void testStarted (TestIdentifier testId)
| Parametry | |
|---|---|
testId |
TestIdentifier |
testStarted
public void testStarted (TestIdentifier testId,
long startTime)| Parametry | |
|---|---|
testId |
TestIdentifier |
startTime |
long |