Reporter wyników tekstowych
public class TextResultReporter
extends InvocationToJUnitResultForwarder
implements ITestInvocationListener, ILogSaverListener
Obiekt Java.lang.Object | ||
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder | |
↳ | com.android.tradefed.result.TextResultReporter |
Reporter wyników testów, który przekazuje wyniki do drukarki wyników tekstowych JUnit.
Streszczenie
Konstruktorzy publiczni | |
---|---|
TextResultReporter () Tworzy |
Metody publiczne | |
---|---|
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) Zastępuje element nadrzędny, aby jawnie wydrukować metryki testowe. |
void | testFailed (TestDescription testId, String trace) Zastępuje element nadrzędny, aby jawnie 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, metrics) testRunEnded (long elapsedTime, metrics) Zastępuje element nadrzędny, aby jawnie wydrukować metryki. |
Konstruktorzy publiczni
Metody publiczne
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription testId, String trace)
Parametry | |
---|---|
testId | TestDescription |
trace | String |
testZakończony
public void testEnded (TestDescription testId,metrics)
Zastępuje element nadrzędny, aby jawnie wydrukować metryki testowe.
Parametry | |
---|---|
testId | TestDescription |
metrics |
Test nieudany
public void testFailed (TestDescription testId, String trace)
Zastępuje element nadrzędny, aby jawnie wydrukować błędy. Aby to zrobić, ResultPrinter polega na tym, że moduł uruchamiający wywołuje „print” na koniec przebiegu testowego.
Parametry | |
---|---|
testId | TestDescription |
trace | String |
dziennik testowy
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Parametry | |
---|---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
dziennik testowy zapisany
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
Parametry | |
---|---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
testRunZakończony
public void testRunEnded (long elapsedTime,metrics)
Zastępuje element nadrzędny, aby jawnie wydrukować metryki.
Parametry | |
---|---|
elapsedTime | long |
metrics |