ProtoResultReporter

public abstract class ProtoResultReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
com.android.tradefed.result.proto.ProtoResultReporter


결과 보고자는 내부에 모든 결과가 포함된 TestRecord protobuf를 구축합니다. processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) 에서 최종 proto로 수행할 작업을 처리하도록 확장되어야 합니다.

요약

공개 생성자

ProtoResultReporter ()

공개 메소드

final void invocationEnded (long elapsedTime)
void invocationFailed (FailureDescription failure)
void invocationFailed (Throwable cause)
final void invocationStarted (IInvocationContext context)
final void logAssociation (String dataName, LogFile logFile)
void processFinalProto (TestRecordProto.TestRecord finalRecord)

모든 결과가 포함된 최종 프로토타입을 처리합니다.

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) 발생한 후 부분 호출 테스트 레코드 proto를 처리합니다.

void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 발생한 후 최종 테스트 케이스 레코드 proto를 처리합니다.

void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(com.android.tradefed.result.TestDescription, long) 발생한 후 부분 테스트 사례 레코드 proto를 처리합니다.

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() 발생한 후 최종 모듈 레코드 proto를 처리합니다.

void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(com.android.tradefed.invoker.IInvocationContext) 발생한 후 부분 모듈 레코드 proto를 처리합니다.

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap) 발생한 후 최종 실행 기록 proto를 처리합니다.

void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) 발생한 후 부분 테스트 실행 레코드 proto를 처리합니다.

boolean supportGranularResults ()
final void testAssumptionFailure (TestDescription test, String trace)
final void testAssumptionFailure (TestDescription test, FailureDescription failure)
final void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)
void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)
final void testFailed (TestDescription test, FailureDescription failure)
final void testFailed (TestDescription test, String trace)
final void testIgnored (TestDescription test)
final void testModuleEnded ()
final void testModuleStarted (IInvocationContext moduleContext)
final void testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics)
final void testRunFailed (FailureDescription failure)
final void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount, int attemptNumber)
final void testRunStarted (String runName, int testCount)
void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
final void testStarted (TestDescription test, long startTime)
final void testStarted (TestDescription test)

보호된 방법

TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

모듈에 대한 하위 참조를 만듭니다.

공개 생성자

ProtoResultReporter

public ProtoResultReporter ()

공개 메소드

호출종료됨

public final void invocationEnded (long elapsedTime)

매개변수
elapsedTime long

호출 실패

public void invocationFailed (FailureDescription failure)

매개변수
failure FailureDescription

호출 실패

public void invocationFailed (Throwable cause)

매개변수
cause Throwable

호출시작됨

public final void invocationStarted (IInvocationContext context)

매개변수
context IInvocationContext

로그 연관

public final void logAssociation (String dataName, 
                LogFile logFile)

매개변수
dataName String

logFile LogFile

프로세스최종프로토

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

모든 결과가 포함된 최종 프로토타입을 처리합니다.

매개변수
finalRecord TestRecordProto.TestRecord : 모든 호출 결과가 포함된 최종 proto입니다.

프로세스시작호출

public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, 
                IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) 발생한 후 부분 호출 테스트 레코드 proto를 처리합니다.

매개변수
invocationStartRecord TestRecordProto.TestRecord : invocationStart 이후에 채워지는 부분 proto입니다.

invocationContext IInvocationContext : IInvocationContext 호출입니다.

processTestCase가 종료되었습니다.

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 발생한 후 최종 테스트 케이스 레코드 proto를 처리합니다.

매개변수
testCaseRecord TestRecordProto.TestRecord : 테스트 사례를 나타내는 최종 proto입니다.

processTestCase시작됨

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(com.android.tradefed.result.TestDescription, long) 발생한 후 부분 테스트 사례 레코드 proto를 처리합니다.

매개변수
testCaseStartedRecord TestRecordProto.TestRecord : 테스트 사례를 나타내는 부분 proto입니다.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() 발생한 후 최종 모듈 레코드 proto를 처리합니다.

매개변수
moduleRecord TestRecordProto.TestRecord : 모듈을 나타내는 최종 proto입니다.

processTestModule시작됨

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(com.android.tradefed.invoker.IInvocationContext) 발생한 후 부분 모듈 레코드 proto를 처리합니다.

매개변수
moduleStartRecord TestRecordProto.TestRecord : 모듈을 나타내는 부분 proto입니다.

프로세스테스트실행이 종료되었습니다.

public void processTestRunEnded (TestRecordProto.TestRecord runRecord, 
                boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap) 발생한 후 최종 실행 기록 proto를 처리합니다.

매개변수
runRecord TestRecordProto.TestRecord : 실행을 나타내는 최종 proto입니다.

moduleInProgress boolean : 모듈이 진행 중인지 여부.

프로세스테스트실행이 시작되었습니다.

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) 발생한 후 부분 테스트 실행 레코드 proto를 처리합니다.

매개변수
runStartedRecord TestRecordProto.TestRecord : 실행을 나타내는 부분 proto입니다.

지원세분화된 결과

public boolean supportGranularResults ()

보고
boolean

테스트가정실패

public final void testAssumptionFailure (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

테스트가정실패

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

매개변수
test TestDescription

failure FailureDescription

테스트 종료됨

public final void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

매개변수
test TestDescription

endTime long

testMetrics

테스트 종료됨

public void testEnded (TestDescription test, 
                 testMetrics)

매개변수
test TestDescription

testMetrics

테스트 실패

public final void testFailed (TestDescription test, 
                FailureDescription failure)

매개변수
test TestDescription

failure FailureDescription

테스트 실패

public final void testFailed (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

테스트는 무시됨

public final void testIgnored (TestDescription test)

매개변수
test TestDescription

테스트모듈종료됨

public final void testModuleEnded ()

테스트모듈시작됨

public final void testModuleStarted (IInvocationContext moduleContext)

매개변수
moduleContext IInvocationContext

테스트실행이 종료됨

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

매개변수
elapsedTimeMillis long

runMetrics

테스트실행실패

public final void testRunFailed (FailureDescription failure)

매개변수
failure FailureDescription

테스트실행실패

public final void testRunFailed (String errorMessage)

매개변수
errorMessage String

테스트실행시작됨

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

매개변수
runName String

testCount int

attemptNumber int

테스트실행시작됨

public final void testRunStarted (String runName, 
                int testCount)

매개변수
runName String

testCount int

테스트실행시작됨

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

매개변수
runName String

testCount int

attemptNumber int

startTime long

테스트시작됨

public final void testStarted (TestDescription test, 
                long startTime)

매개변수
test TestDescription

startTime long

테스트시작됨

public final void testStarted (TestDescription test)

매개변수
test TestDescription

보호된 방법

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

모듈에 대한 하위 참조를 만듭니다.

매개변수
record TestRecordProto.TestRecord

보고
TestRecordProto.ChildReference