TextResultReporter
public
class
TextResultReporter
extends InvocationToJUnitResultForwarder
implements
ITestInvocationListener,
ILogSaverListener
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder | |
| ↳ | com.android.tradefed.result.TextResultReporter | |
將結果轉送至 JUnit 文字結果列印機的測試結果回報器。
摘要
公用建構函式 | |
|---|---|
TextResultReporter()
|
|
公用方法 | |
|---|---|
void
|
testAssumptionFailure(TestDescription testId, String trace)
|
void
|
testEnded(TestDescription testId,
覆寫父項,明確列印測試指標。 |
void
|
testFailed(TestDescription testId, String trace)
覆寫父項,以便明確列印失敗項目。 |
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testRunEnded(long elapsedTime,
覆寫父項,以便明確列印指標。 |
公用建構函式
公用方法
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId,
String trace)| 參數 | |
|---|---|
testId |
TestDescription |
trace |
String |
testEnded
public void testEnded (TestDescription testId,
metrics) 覆寫父項,明確列印測試指標。
| 參數 | |
|---|---|
testId |
TestDescription |
metrics |
|
testFailed
public void testFailed (TestDescription testId,
String trace)覆寫父項,以便明確列印失敗項目。為此,ResultPrinter 會在測試執行結束時,依賴執行程式呼叫「print」。
| 參數 | |
|---|---|
testId |
TestDescription |
trace |
String |
testLog
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
| 參數 | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
| 參數 | |
|---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testRunEnded
public void testRunEnded (long elapsedTime,
metrics) 覆寫父項,以便明確列印指標。
| 參數 | |
|---|---|
elapsedTime |
long |
metrics |
|