ProtoResultRaporter
public abstract class ProtoResultReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Nesne |
↳ | com.android.tradefed.result.proto.ProtoResultReporter |
Bilinen doğrudan alt sınıflar |
Muhabir yapı bir sonuç TestRecord
içeride sonuçları tüm protobuf. Son proto ile ne işlemek için genişletilmesi gerektiğini processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord)
.
Özet
Genel yöntemler |
---|
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) Tüm sonuçlarla birlikte son protokolün işlenmesi. |
void | processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext) Sonra kısmi çağırma testi kayıt proto Taşıma invocationStarted(com.android.tradefed.invoker.IInvocationContext) oluştu. |
void | processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord) Sonra nihai test durumda kayıt proto Taşıma ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) oluştu. |
void | processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord) Sonra kısmi test durumda kayıt proto Taşıma testStarted(com.android.tradefed.result.TestDescription, long) oluştu. |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) Sonra kesinleşmiş modülü kayıt proto Taşıma testModuleEnded() oluştu. |
void | processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord) Sonra kısmi modülü kayıt proto Taşıma testModuleStarted(com.android.tradefed.invoker.IInvocationContext) oluştu. |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) Sonra nihai çalışma kayıt proto Taşıma ITestLifeCycleReceiver.testRunEnded(long, HashMap) oluştu. |
void | processTestRunStarted (TestRecordProto.TestRecord runStartedRecord) Sonra kısmi test çalıştırması kayıt proto Taşıma testRunStarted(String, int) oluştu. |
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) |
Korumalı yöntemler |
---|
TestRecordProto.ChildReference | createModuleChildReference (TestRecordProto.TestRecord record) Bir modül için bir alt referans oluşturur. |
Kamu inşaatçıları
ProtoResultRaporter
public ProtoResultReporter ()
Genel yöntemler
çağrı Bitirildi
public final void invocationEnded (long elapsedTime)
parametreler |
---|
elapsedTime | long |
çağırmaBaşarısız
public void invocationFailed (FailureDescription failure)
parametreler |
---|
failure | FailureDescription |
çağırmaBaşarısız
public void invocationFailed (Throwable cause)
parametreler |
---|
cause | Throwable |
çağrıBaşlatıldı
public final void invocationStarted (IInvocationContext context)
parametreler |
---|
context | IInvocationContext |
logAssociation
public final void logAssociation (String dataName,
LogFile logFile)
parametreler |
---|
dataName | String |
logFile | LogFile |
süreçSonProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
Tüm sonuçlarla birlikte son protokolün işlenmesi.
parametreler |
---|
finalRecord | TestRecordProto.TestRecord : Bütün çağırma sonuçları ile kesinleşmiş proto. |
süreçBaşlatÇağırma
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord,
IInvocationContext invocationContext)
Sonra kısmi çağırma testi kayıt proto Taşıma invocationStarted(com.android.tradefed.invoker.IInvocationContext)
oluştu.
parametreler |
---|
invocationStartRecord | TestRecordProto.TestRecord : invocationStart sonra doldurulur kısmi proto. |
invocationContext | IInvocationContext : çağırma IInvocationContext . |
processTestCaseBaşlatıldı
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
Sonra kısmi test durumda kayıt proto Taşıma testStarted(com.android.tradefed.result.TestDescription, long)
oluştu.
parametreler |
---|
testCaseStartedRecord | TestRecordProto.TestRecord : test durumu temsil eden kısmi proto. |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
Sonra kesinleşmiş modülü kayıt proto Taşıma testModuleEnded()
oluştu.
parametreler |
---|
moduleRecord | TestRecordProto.TestRecord : modülünü temsil sonlandırılmış proto. |
süreçTestÇalışmasıBitti
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)
Sonra nihai çalışma kayıt proto Taşıma ITestLifeCycleReceiver.testRunEnded(long, HashMap)
oluştu.
parametreler |
---|
runRecord | TestRecordProto.TestRecord : çalıştırmak temsil sonlandırılmış proto. |
moduleInProgress | boolean : Bir modül devam edip etmediğini ya da değil. |
süreçTestÇalışmasıBaşladı
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
Sonra kısmi test çalıştırması kayıt proto Taşıma testRunStarted(String, int)
oluştu.
parametreler |
---|
runStartedRecord | TestRecordProto.TestRecord : çalıştırmak temsil kısmi proto. |
supportGranularResults
public boolean supportGranularResults ()
testVarsayımBaşarısızlık
public final void testAssumptionFailure (TestDescription test,
String trace)
parametreler |
---|
test | TestDescription |
trace | String |
testVarsayımBaşarısızlık
public final void testAssumptionFailure (TestDescription test,
FailureDescription failure)
parametreler |
---|
test | TestDescription |
failure | FailureDescription |
testBitti
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
parametreler |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testBitti
public void testEnded (TestDescription test,
testMetrics)
parametreler |
---|
test | TestDescription |
testMetrics | |
test başarısız
public final void testFailed (TestDescription test,
FailureDescription failure)
parametreler |
---|
test | TestDescription |
failure | FailureDescription |
test başarısız
public final void testFailed (TestDescription test,
String trace)
parametreler |
---|
test | TestDescription |
trace | String |
testYoksayıldı
public final void testIgnored (TestDescription test)
parametreler |
---|
test | TestDescription |
testModuleBitti
public final void testModuleEnded ()
testModuleBaşladı
public final void testModuleStarted (IInvocationContext moduleContext)
parametreler |
---|
moduleContext | IInvocationContext |
testRunBitti
public final void testRunEnded (long elapsedTimeMillis,
runMetrics)
parametreler |
---|
elapsedTimeMillis | long |
runMetrics | |
testRunFailed
public final void testRunFailed (FailureDescription failure)
parametreler |
---|
failure | FailureDescription |
testRunFailed
public final void testRunFailed (String errorMessage)
parametreler |
---|
errorMessage | String |
testÇalıştırıldı
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
parametreler |
---|
runName | String |
testCount | int |
attemptNumber | int |
testÇalıştırıldı
public final void testRunStarted (String runName,
int testCount)
parametreler |
---|
runName | String |
testCount | int |
testÇalıştırıldı
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
parametreler |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testBaşladı
public final void testStarted (TestDescription test,
long startTime)
parametreler |
---|
test | TestDescription |
startTime | long |
testBaşladı
public final void testStarted (TestDescription test)
parametreler |
---|
test | TestDescription |
Korumalı yöntemler
createModuleChildReference
protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)
Bir modül için bir alt referans oluşturur.
parametreler |
---|
record | TestRecordProto.TestRecord |
İadeler |
---|
TestRecordProto.ChildReference | |