TextResultReporter
public
class
TextResultReporter
extends InvocationToJUnitResultForwarder
implements
ITestInvocationListener,
ILogSaverListener
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder | |
| ↳ | com.android.tradefed.result.TextResultReporter | |
Raport wyników testu, który przekazuje wyniki do drukarki wyników tekstowych JUnit.
Podsumowanie
Konstruktory publiczne | |
|---|---|
TextResultReporter()
Tworzy |
|
Metody publiczne | |
|---|---|
void
|
testAssumptionFailure(TestDescription testId, String trace)
|
void
|
testEnded(TestDescription testId,
Zastępuje element nadrzędny, aby wydrukować dane testu. |
void
|
testFailed(TestDescription testId, String trace)
Zastępuje element nadrzędny, aby wydrukować błędy. |
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testRunEnded(long elapsedTime,
Zastępuje element nadrzędny, aby wydrukować dane. |
Konstruktory publiczne
Metody publiczne
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId,
String trace)| Parametry | |
|---|---|
testId |
TestDescription |
trace |
String |
testEnded
public void testEnded (TestDescription testId,
metrics) Zastępuje element nadrzędny, aby wydrukować dane testu.
| Parametry | |
|---|---|
testId |
TestDescription |
metrics |
|
testFailed
public void testFailed (TestDescription testId,
String trace)Zastępuje element nadrzędny, aby wydrukować błędy. Funkcja ResultPrinter polega na wywołaniu przez funkcję uruchamiającą funkcję „print” na końcu testu.
| Parametry | |
|---|---|
testId |
TestDescription |
trace |
String |
testLog
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
| Parametry | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
| Parametry | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testRunEnded
public void testRunEnded (long elapsedTime,
metrics) Zastępuje element nadrzędny, aby wydrukować dane.
| Parametry | |
|---|---|
elapsedTime |
long |
metrics |
|