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)의 최종 프로토를 처리하는 작업을 처리하도록 확장해야 합니다.

요약

공개 생성자

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) 발생 후 부분 호출 테스트 레코드 프로토 처리

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 발생 후 완료된 테스트 사례 레코드 프로토 처리

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

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

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

testModuleEnded()가 발생한 후 최종 모듈 레코드 프로토 처리

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

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

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ITestLifeCycleReceiver.testRunEnded(long, HashMap)이 발생한 후 완료된 실행 기록 프로토를 처리합니다.

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

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

boolean supportGranularResults()
final void testAssumptionFailure(TestDescription test, String trace)
final void testAssumptionFailure(TestDescription test, FailureDescription failure)
final void testEnded(TestDescription test, long endTime, testMetrics)
void 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)
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 ()

공개 메서드

invocationEnded

public final void invocationEnded (long elapsedTime)

매개변수
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

매개변수
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

매개변수
cause Throwable

invocationStarted

public final void invocationStarted (IInvocationContext context)

매개변수
context IInvocationContext

logAssociation

public final void logAssociation (String dataName, 
                LogFile logFile)

매개변수
dataName String

logFile LogFile

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

모든 결과가 포함된 최종 프로토 처리

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

processStartInvocation

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

invocationStarted(com.android.tradefed.invoker.IInvocationContext) 발생 후 부분 호출 테스트 레코드 프로토 처리

매개변수
invocationStartRecord TestRecordProto.TestRecord: invocationStart 후에 채워진 부분 프로토입니다.

invocationContext IInvocationContext: 호출 IInvocationContext입니다.

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 발생 후 완료된 테스트 사례 레코드 프로토 처리

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

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

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

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

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded()가 발생한 후 최종 모듈 레코드 프로토 처리

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

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

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

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

processTestRunEnded

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

ITestLifeCycleReceiver.testRunEnded(long, HashMap)이 발생한 후 완료된 실행 기록 프로토를 처리합니다.

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

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

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

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

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

supportGranularResults

public boolean supportGranularResults ()

반환 값
boolean

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

매개변수
test TestDescription

failure FailureDescription

testEnded

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

매개변수
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

매개변수
test TestDescription

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                FailureDescription failure)

매개변수
test TestDescription

failure FailureDescription

testFailed

public final void testFailed (TestDescription test, 
                String trace)

매개변수
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

매개변수
test TestDescription

testModuleEnded

public final void testModuleEnded ()

testModuleStarted

public final void testModuleStarted (IInvocationContext moduleContext)

매개변수
moduleContext IInvocationContext

testRunEnded

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

매개변수
elapsedTimeMillis long

runMetrics

testRunFailed

public final void testRunFailed (FailureDescription failure)

매개변수
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

매개변수
errorMessage String

testRunStarted

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

매개변수
runName String

testCount int

attemptNumber int

testRunStarted

public final void testRunStarted (String runName, 
                int testCount)

매개변수
runName String

testCount int

testRunStarted

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

매개변수
runName String

testCount int

attemptNumber int

startTime long

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

매개변수
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

매개변수
test TestDescription

보호된 메서드

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

모듈의 하위 참조를 만듭니다.

매개변수
record TestRecordProto.TestRecord

반환 값
TestRecordProto.ChildReference