ProtoResultReporter
public abstract class ProtoResultReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.proto.ProtoResultReporter |
Bilinen doğrudan alt sınıflar |
Sonuç raporlayıcısı, içindeki tüm sonuçları içeren bir TestRecord
protobuf'u oluşturur. processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord)
içindeki son protokolle ne yapılacağını ele alacak şekilde genişletilmelidir.
Ö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) invocationStarted(com.android.tradefed.invoker.IInvocationContext) oluştuktan sonra kısmi çağırma test kaydı protokolünün işlenmesi. |
void | processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord) ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) gerçekleştikten sonra kesinleşmiş test senaryosu kaydı protokolünün işlenmesi. |
void | processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord) testStarted(com.android.tradefed.result.TestDescription, long) gerçekleştikten sonra kısmi test senaryosu kaydı protokolünün işlenmesi. |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) testModuleEnded() oluştuktan sonra sonlandırılmış modül kayıt protokolünün işlenmesi. |
void | processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord) testModuleStarted(com.android.tradefed.invoker.IInvocationContext) oluştuktan sonra kısmi modül kaydı protokolünün işlenmesi. |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) ITestLifeCycleReceiver.testRunEnded(long, HashMap) oluştuktan sonra sonlandırılmış çalıştırma kaydı protokolünün işlenmesi. |
void | processTestRunStarted (TestRecordProto.TestRecord runStartedRecord) testRunStarted(String, int) oluştuktan sonra kısmi test çalıştırması kayıt protokolünün işlenmesi. |
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 alt başvuru oluşturur. |
Kamu inşaatçıları
ProtoResultReporter
public ProtoResultReporter ()
Genel yöntemler
çağırma sona erdi
public final void invocationEnded (long elapsedTime)
Parametreler |
---|
elapsedTime | long |
çağrı başarısız oldu
public void invocationFailed (FailureDescription failure)
Parametreler |
---|
failure | FailureDescription |
çağrı başarısız oldu
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çFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
Tüm sonuçlarla birlikte son protokolün işlenmesi.
Parametreler |
---|
finalRecord | TestRecordProto.TestRecord : Tüm çağırma sonuçlarını içeren sonlandırılmış protokol. |
prosesStartInvokasyon
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord,
IInvocationContext invocationContext)
invocationStarted(com.android.tradefed.invoker.IInvocationContext)
oluştuktan sonra kısmi çağırma test kaydı protokolünün işlenmesi.
Parametreler |
---|
invocationStartRecord | TestRecordProto.TestRecord : invokasyonStart'tan sonra doldurulan kısmi protokol. |
invocationContext | IInvocationContext : Çağrı IInvocationContext . |
süreçTestCaseBaşladı
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
testStarted(com.android.tradefed.result.TestDescription, long)
gerçekleştikten sonra kısmi test senaryosu kaydı protokolünün işlenmesi.
Parametreler |
---|
testCaseStartedRecord | TestRecordProto.TestRecord : Test senaryosunu temsil eden kısmi protokol. |
süreçTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
testModuleEnded()
oluştuktan sonra sonlandırılmış modül kayıt protokolünün işlenmesi.
Parametreler |
---|
moduleRecord | TestRecordProto.TestRecord : Modülü temsil eden sonlandırılmış protokol. |
süreçTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)
ITestLifeCycleReceiver.testRunEnded(long, HashMap)
oluştuktan sonra sonlandırılmış çalıştırma kaydı protokolünün işlenmesi.
Parametreler |
---|
runRecord | TestRecordProto.TestRecord : Çalıştırmayı temsil eden sonlandırılmış protokol. |
moduleInProgress | boolean : Bir modülün devam edip etmediği. |
süreçTestRunBaşlatıldı
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int)
oluştuktan sonra kısmi test çalıştırması kayıt protokolünün işlenmesi.
Parametreler |
---|
runStartedRecord | TestRecordProto.TestRecord : Çalıştırmayı temsil eden kısmi protokol. |
destekAyrıntılıSonuçlar
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 |
testSonlandı
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametreler |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testSonlandı
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 |
testModuleEnded
public final void testModuleEnded ()
testModuleStarted
public final void testModuleStarted (IInvocationContext moduleContext)
Parametreler |
---|
moduleContext | IInvocationContext |
testRunEnded
public final void testRunEnded (long elapsedTimeMillis,
runMetrics)
Parametreler |
---|
elapsedTimeMillis | long |
runMetrics | |
testRun Başarısız
public final void testRunFailed (FailureDescription failure)
Parametreler |
---|
failure | FailureDescription |
testRun Başarısız
public final void testRunFailed (String errorMessage)
Parametreler |
---|
errorMessage | String |
testRunBaşlatıldı
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Parametreler |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunBaşlatıldı
public final void testRunStarted (String runName,
int testCount)
Parametreler |
---|
runName | String |
testCount | int |
testRunBaşlatı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 alt başvuru oluşturur.
Parametreler |
---|
record | TestRecordProto.TestRecord |
İadeler |
---|
TestRecordProto.ChildReference | |