ShardListener

public class ShardListener
extends CollectingTestListener implements ISupportGranularResults

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.invoker.ShardListener


Bir çağrı parçasından (birden fazla kaynakta paralel olarak çalışacak şekilde çağrı bölünmesi olarak da bilinir) sonuçları toplayan ve bunları başka bir dinleyiciye ileten bir ITestInvocationListener .

Özet

Kamu inşaatçıları

ShardListener (ITestInvocationListener main)

Bir ShardListener oluşturun.

Genel yöntemler

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void setSupportGranularResults (boolean enableGranularResults)
boolean supportGranularResults ()

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String failureMessage)

void testRunStarted (String name, int numTests, int attemptNumber, long startTime)

Kamu inşaatçıları

ShardListener

public ShardListener (ITestInvocationListener main)

Bir ShardListener oluşturun.

Parametreler
main ITestInvocationListener : ITestInvocationListener sonuçların iletilmesi gerekir. Diğer ShardListener çarpışmaları önlemek için, bu nesne, sonuçlar iletilirken main üzerinde senkronize edilecektir. Ve sonuçlar yalnızca çağrı parçası tamamlandıktan sonra gönderilecektir.

Genel yöntemler

çağırma sona erdi

public 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 void invocationStarted (IInvocationContext context)

Parametreler
context IInvocationContext

setDestekAyrıntılıSonuçlar

public void setSupportGranularResults (boolean enableGranularResults)

Parametreler
enableGranularResults boolean

destekAyrıntılıSonuçlar

public boolean supportGranularResults ()

İadeler
boolean

test günlüğü

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogKaydedildi

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parametreler
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametreler
elapsedTime long

runMetrics

testRun Başarısız

public void testRunFailed (FailureDescription failure)

Parametreler
failure FailureDescription

testRun Başarısız

public void testRunFailed (String failureMessage)

Parametreler
failureMessage String

testRunBaşlatıldı

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)

Parametreler
name String

numTests int

attemptNumber int

startTime long