Reporter wyników podprocesu
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
Obiekt Java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Znane bezpośrednie podklasy LegacySubprocessResultsReporter | Zamrożona implementacja reportera wyników podprocesu, który powinien pozostać kompatybilny z wcześniejszymi wersjami TF/CTS (np. 8+), pomimo zmian w jego nadklasie. |
|
Implementuje ITestInvocationListener
, który ma być określony jako reporter_wyników i przekazuje z podprocesu wyniki testów, przebiegów testów i wywołań testów.
Streszczenie
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) Pomocnik do wydrukowania klucza zdarzenia, a następnie obiektu json. |
void | setOutputTestLog (boolean outputTestLog) Ustawia, czy powinniśmy wypisywać zarejestrowany test, czy nie. |
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) |
Konstruktorzy publiczni
Reporter wyników podprocesu
public SubprocessResultsReporter ()
Metody publiczne
zamknąć
public void close ()
pobierz podsumowanie
public TestSummary getSummary ()
wywołanieZakończone
public void invocationEnded (long elapsedTime)
Parametry |
---|
elapsedTime | long |
wywołanie nie powiodło się
public void invocationFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
wywołanie nie powiodło się
public void invocationFailed (Throwable cause)
Parametry |
---|
cause | Throwable |
wywołanieRozpoczęte
public void invocationStarted (IInvocationContext context)
Parametry |
---|
context | IInvocationContext |
stowarzyszenie log
public void logAssociation (String dataName,
LogFile logFile)
Parametry |
---|
dataName | String |
logFile | LogFile |
wydrukuj wydarzenie
public void printEvent (String key,
Object event)
Pomocnik do wydrukowania klucza zdarzenia, a następnie obiektu json.
Parametry |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Ustawia, czy powinniśmy wypisywać zarejestrowany test, czy nie.
Parametry |
---|
outputTestLog | boolean |
wsparcieGranularResults
public boolean supportGranularResults ()
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription testId,
String trace)
Parametry |
---|
testId | TestDescription |
trace | String |
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
Parametry |
---|
testId | TestDescription |
failure | FailureDescription |
testZakończony
public void testEnded (TestDescription testId,
long endTime,
metrics)
Parametry |
---|
testId | TestDescription |
endTime | long |
metrics | |
testZakończony
public void testEnded (TestDescription testId,
metrics)
Parametry |
---|
testId | TestDescription |
metrics | |
Test nieudany
public void testFailed (TestDescription testId,
FailureDescription failure)
Parametry |
---|
testId | TestDescription |
failure | FailureDescription |
Test nieudany
public void testFailed (TestDescription testId,
String reason)
Parametry |
---|
testId | TestDescription |
reason | String |
testIgnorowany
public void testIgnored (TestDescription testId)
Parametry |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parametry |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
moduł testowyZakończony
public void testModuleEnded ()
Uruchomiono moduł testowy
public void testModuleStarted (IInvocationContext moduleContext)
Parametry |
---|
moduleContext | IInvocationContext |
testRunZakończony
public void testRunEnded (long time,
runMetrics)
Parametry |
---|
time | long |
runMetrics | |
testRun nie powiódł się
public void testRunFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
testRun nie powiódł się
public void testRunFailed (String reason)
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Parametry |
---|
runName | String |
testCount | int |
attemptNumber | int |
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount)
Parametry |
---|
runName | String |
testCount | int |
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Parametry |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunZatrzymany
public void testRunStopped (long arg0)
test rozpoczęty
public void testStarted (TestDescription testId,
long startTime)
Parametry |
---|
testId | TestDescription |
startTime | long |
test rozpoczęty
public void testStarted (TestDescription testId)
Parametry |
---|
testId | TestDescription |