ShardListener

public class ShardListener
extends CollectingTestListener implements ISupportGranularResults

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


ITestInvocationListener, który zbiera wyniki z fragmentu wywołania (czyli wywołania podzielonego na kilka zasobów do działania równoległego) i przekazuje je innemu odbiorcy.

Podsumowanie

Konstruktory publiczne

ShardListener(ITestInvocationListener main)

Utwórz ShardListener.

Metody publiczne

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)

Konstruktory publiczne

ShardListener

public ShardListener (ITestInvocationListener main)

Utwórz ShardListener.

Parametry
main ITestInvocationListener: ITestInvocationListener wyników, które mają zostać przesłane. Aby zapobiec kolizji z innymi obiektami ShardListener, ten obiekt będzie synchronizowany z usługą main podczas przesyłania wyników. Wyniki zostaną wysłane dopiero po zakończeniu wywołania.

Metody publiczne

invocationEnded

public void invocationEnded (long elapsedTime)

Parametry
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Parametry
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parametry
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parametry
context IInvocationContext

setSupportGranularResults

public void setSupportGranularResults (boolean enableGranularResults)

Parametry
enableGranularResults boolean

supportGranularResults

public boolean supportGranularResults ()

Zwroty
boolean

testLog

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

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parametry
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametry
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parametry
failure FailureDescription

testRunFailed

public void testRunFailed (String failureMessage)

Parametry
failureMessage String

testRunStarted

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

Parametry
name String

numTests int

attemptNumber int

startTime long