ProtoResultReporter
public abstract class ProtoResultReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.object |
↳ | com.android.tradefed.result.proto.ProtoResultReporter |
زیر کلاس های مستقیم شناخته شده |
گزارشگر نتیجه یک پروتوباف TestRecord
با تمام نتایج داخل آن میسازد. باید برای رسیدگی به کارهایی که باید با پروتو نهایی در processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord)
انجام شود گسترش داده شود.
خلاصه
روش های عمومی |
---|
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 |
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 . |
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 : پروتو نهایی که نشان دهنده ماژول است. |
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 : پروتوی جزئی که اجرا را نشان می دهد. |
supportGranular Results
public boolean supportGranularResults ()
آزمون فرض شکست
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 |
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 |
تست شروع شد
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 | |