ProtoResultReporter

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

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


ผู้รายงานผลลัพธ์สร้าง Protobuf TestRecord โดยมีผลลัพธ์ทั้งหมดอยู่ภายใน ควรขยายเพื่อจัดการกับสิ่งที่ต้องทำกับโปรโตสุดท้ายใน 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) 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

กระบวนการFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

การจัดการกับโปรโตสุดท้ายพร้อมผลลัพธ์ทั้งหมด

พารามิเตอร์
finalRecord TestRecordProto.TestRecord : โปรโตสรุปพร้อมผลลัพธ์การเรียกใช้ทั้งหมด

กระบวนการStartInvocation

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

การจัดการโปรโตบันทึกการทดสอบการร้องขอบางส่วนหลังจาก invocationStarted(com.android.tradefed.invoker.IInvocationContext) เกิดขึ้น

พารามิเตอร์
invocationStartRecord TestRecordProto.TestRecord : โปรโตบางส่วนที่เติมข้อมูลหลังจาก invocationStart

invocationContext IInvocationContext : การร้องขอ IInvocationContext

กระบวนการTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

การจัดการโปรโตบันทึกกรณีการทดสอบสรุปหลังจาก ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) เกิดขึ้น

พารามิเตอร์
testCaseRecord TestRecordProto.TestRecord : โปรโตสรุปที่แสดงถึงกรณีทดสอบ

กระบวนการTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

การจัดการโปรโตบันทึกกรณีทดสอบบางส่วนหลังจาก testStarted(com.android.tradefed.result.TestDescription, long) เกิดขึ้น

พารามิเตอร์
testCaseStartedRecord TestRecordProto.TestRecord : โปรโตบางส่วนที่แสดงถึงกรณีทดสอบ

กระบวนการทดสอบโมดูลสิ้นสุด

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

การจัดการโปรโตบันทึกโมดูลสรุปผลหลังจากเกิดขึ้น testModuleEnded()

พารามิเตอร์
moduleRecord TestRecordProto.TestRecord : โปรโตสรุปที่เป็นตัวแทนของโมดูล

กระบวนการทดสอบโมดูลเริ่มต้นแล้ว

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

การจัดการโปรโตบันทึกโมดูลบางส่วนหลังจาก testModuleStarted(com.android.tradefed.invoker.IInvocationContext) เกิดขึ้น

พารามิเตอร์
moduleStartRecord TestRecordProto.TestRecord : โปรโตบางส่วนที่เป็นตัวแทนของโมดูล

กระบวนการ TestRunEnded

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

การจัดการโปรโตบันทึกการรันสรุปผลหลังจากเกิด ITestLifeCycleReceiver.testRunEnded(long, HashMap)

พารามิเตอร์
runRecord TestRecordProto.TestRecord : โปรโตสรุปที่แสดงถึงการวิ่ง

moduleInProgress boolean : แสดงว่าโมดูลกำลังดำเนินการอยู่หรือไม่

กระบวนการ TestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

การจัดการโปรโตบันทึกการรันการทดสอบบางส่วนหลังจาก testRunStarted(String, int) เกิดขึ้น

พารามิเตอร์
runStartedRecord TestRecordProto.TestRecord : โปรโตบางส่วนที่แสดงถึงการวิ่ง

สนับสนุนผลลัพธ์แบบละเอียด

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

testRunFailed

public final void testRunFailed (FailureDescription failure)

พารามิเตอร์
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

พารามิเตอร์
errorMessage String

ทดสอบ RunStarted

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

พารามิเตอร์
runName String

testCount int

attemptNumber int

ทดสอบ RunStarted

public final void testRunStarted (String runName, 
                int testCount)

พารามิเตอร์
runName String

testCount int

ทดสอบ RunStarted

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