事件記錄監聽器
public class EventsLoggerListener
extends Object
implements ILogSaverListener
java.lang.Object |
↳ | com.android.tradefed.result.EventsLoggerListener |
將接收到的所有事件記錄到檔案中的偵聽器
概括
公共方法 |
---|
File | getLoggedEvents () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationStarted (IInvocationContext context) |
void | logAssociation (String dataName, LogFile logFile) |
void | testAssumptionFailure (TestDescription test, String trace) |
void | testAssumptionFailure (TestDescription test, FailureDescription failure) |
void | testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics) |
void | testFailed (TestDescription test, FailureDescription failure) |
void | testFailed (TestDescription test, String trace) |
void | testIgnored (TestDescription test) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String errorMessage) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testStarted (TestDescription test, long startTime) |
公共構造函數
事件記錄監聽器
public EventsLoggerListener (String name)
公共方法
取得記錄事件
public File getLoggedEvents ()
呼叫結束
public void invocationEnded (long elapsedTime)
呼叫失敗
public void invocationFailed (FailureDescription failure)
參數 |
---|
failure | FailureDescription |
調用開始
public void invocationStarted (IInvocationContext context)
參數 |
---|
context | IInvocationContext |
日誌關聯
public void logAssociation (String dataName,
LogFile logFile)
參數 |
---|
dataName | String |
logFile | LogFile |
測試假設失敗
public void testAssumptionFailure (TestDescription test,
String trace)
參數 |
---|
test | TestDescription |
trace | String |
測試假設失敗
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
參數 |
---|
test | TestDescription |
failure | FailureDescription |
測試結束
public void testEnded (TestDescription test,
long endTime,
testMetrics)
參數 |
---|
test | TestDescription |
endTime | long |
testMetrics | |
測試失敗
public void testFailed (TestDescription test,
FailureDescription failure)
參數 |
---|
test | TestDescription |
failure | FailureDescription |
測試失敗
public void testFailed (TestDescription test,
String trace)
參數 |
---|
test | TestDescription |
trace | String |
測試被忽略
public void testIgnored (TestDescription test)
測試模組結束
public void testModuleEnded ()
測試模組啟動
public void testModuleStarted (IInvocationContext moduleContext)
參數 |
---|
moduleContext | IInvocationContext |
測試運行結束
public void testRunEnded (long elapsedTimeMillis,
runMetrics)
參數 |
---|
elapsedTimeMillis | long |
runMetrics | |
測試運行失敗
public void testRunFailed (FailureDescription failure)
參數 |
---|
failure | FailureDescription |
測試運行失敗
public void testRunFailed (String errorMessage)
測試運行開始
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
參數 |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
測試開始
public void testStarted (TestDescription test,
long startTime)
參數 |
---|
test | TestDescription |
startTime | long |