샤드리스너

public class ShardListener
extends CollectingTestListener implements ISupportGranularResults

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.invoker.ShardListener


호출 샤드(여러 리소스에서 병렬로 실행하기 위한 호출 분할이라고도 함)에서 결과를 수집하고 이를 다른 리스너에게 전달하는 ITestInvocationListener 입니다.

요약

공개 생성자

ShardListener (ITestInvocationListener main)

ShardListener 생성합니다.

공개 메소드

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, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String failureMessage)

void testRunStarted (String name, int numTests, int attemptNumber, long startTime)

공개 생성자

샤드리스너

public ShardListener (ITestInvocationListener main)

ShardListener 생성합니다.

매개변수
main ITestInvocationListener : ITestInvocationListener 결과가 전달되어야 합니다. 다른 ShardListener 와의 충돌을 방지하기 위해 이 객체는 결과를 전달할 때 main 에서 동기화됩니다. 결과는 호출 샤드가 완료된 후에만 전송됩니다.

공개 메소드

호출종료됨

public void invocationEnded (long elapsedTime)

매개변수
elapsedTime long

호출 실패

public void invocationFailed (FailureDescription failure)

매개변수
failure FailureDescription

호출 실패

public void invocationFailed (Throwable cause)

매개변수
cause Throwable

호출시작됨

public void invocationStarted (IInvocationContext context)

매개변수
context IInvocationContext

setSupport세부적인 결과

public void setSupportGranularResults (boolean enableGranularResults)

매개변수
enableGranularResults boolean

지원세분화된 결과

public boolean supportGranularResults ()

보고
boolean

테스트로그

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

매개변수
dataName String

dataType LogDataType

dataStream InputStreamSource

테스트로그저장됨

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

매개변수
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

테스트모듈종료됨

public void testModuleEnded ()

테스트모듈시작됨

public void testModuleStarted (IInvocationContext moduleContext)

매개변수
moduleContext IInvocationContext

테스트실행이 종료됨

public void testRunEnded (long elapsedTime, 
                 runMetrics)

매개변수
elapsedTime long

runMetrics

테스트실행실패

public void testRunFailed (FailureDescription failure)

매개변수
failure FailureDescription

테스트실행실패

public void testRunFailed (String failureMessage)

매개변수
failureMessage String

테스트실행시작됨

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)

매개변수
name String

numTests int

attemptNumber int

startTime long