ShardListener
public
class
ShardListener
extends CollectingTestListener
implements
ISupportGranularResults
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.invoker.ShardListener |
호출 샤드 (즉, 여러 리소스에서 동시에 실행되도록 호출을 분할한 것)에서 결과를 수집하고 다른 리스너로 전달하는 ITestInvocationListener
입니다.
요약
공개 생성자 | |
---|---|
ShardListener(ITestInvocationListener main)
|
공개 메서드 | |
---|---|
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationFailed(FailureDescription failure)
|
void
|
invocationFailed(Throwable cause)
|
void
|
invocationStarted(IInvocationContext context)
|
void
|
setSupportGranularResults(boolean enableGranularResults)
|
boolean
|
supportGranularResults()
|
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testModuleEnded()
|
void
|
testModuleStarted(IInvocationContext moduleContext)
|
void
|
testRunEnded(long elapsedTime,
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String failureMessage)
|
void
|
testRunStarted(String name, int numTests, int attemptNumber, long startTime)
|
공개 생성자
ShardListener
public ShardListener (ITestInvocationListener main)
ShardListener
를 만듭니다.
매개변수 | |
---|---|
main |
ITestInvocationListener : 결과를 전달해야 하는 ITestInvocationListener 입니다. 다른 ShardListener 와의 충돌을 방지하기 위해 이 객체는 결과를 전달할 때 main에서 동기화됩니다. 호출 샤드가 완료된 후에만 결과가 전송됩니다.
|
공개 메서드
invocationEnded
public void invocationEnded (long elapsedTime)
매개변수 | |
---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
매개변수 | |
---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
매개변수 | |
---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
매개변수 | |
---|---|
context |
IInvocationContext |
setSupportGranularResults
public void setSupportGranularResults (boolean enableGranularResults)
매개변수 | |
---|---|
enableGranularResults |
boolean |
supportGranularResults
public boolean supportGranularResults ()
반환 값 | |
---|---|
boolean |
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 |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
매개변수 | |
---|---|
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
매개변수 | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
매개변수 | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String failureMessage)
매개변수 | |
---|---|
failureMessage |
String |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber, long startTime)
매개변수 | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
startTime |
long |