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ını (diğer adıyla, birden fazla kaynakta paralel olarak çalışacak şekilde bölünmüş bir çağrı) toplayan ve başka bir dinleyiciye yönlendiren bir ITestInvocationListener.

Özet

Herkese açık kurucular

ShardListener(ITestInvocationListener main)

Bir ShardListener oluşturun.

Herkese açık 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)

void testRunFailed(FailureDescription failure)

void testRunFailed(String failureMessage)

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

Herkese açık kurucular

ShardListener

public ShardListener (ITestInvocationListener main)

Bir ShardListener oluşturun.

Parametreler
main ITestInvocationListener: ITestInvocationListener sonuçları yönlendirilmelidir. Diğer ShardListener'lerle çakışmayı önlemek için bu nesne, sonuçları yönlendirirken main üzerinde senkronize edilir. Sonuçlar yalnızca çağrı kırıntıları tamamlandıktan sonra gönderilir.

Herkese açık yöntemler

invocationEnded

public void invocationEnded (long elapsedTime)

Parametreler
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Parametreler
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parametreler
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parametreler
context IInvocationContext

setSupportGranularResults

public void setSupportGranularResults (boolean enableGranularResults)

Parametreler
enableGranularResults boolean

supportGranularResults

public boolean supportGranularResults ()

İlerlemeler
boolean

testLog

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

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

testRunFailed

public void testRunFailed (FailureDescription failure)

Parametreler
failure FailureDescription

testRunFailed

public void testRunFailed (String failureMessage)

Parametreler
failureMessage String

testRunStarted

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

Parametreler
name String

numTests int

attemptNumber int

startTime long