ShardLister

public class ShardListener
extends CollectingTestListener implements ISupportGranularResults

Obiekt Java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.invoker.ShardListener


Element ITestInvocationListener , który zbiera wyniki z fragmentu wywołania (czyli podziału wywołania w celu równoległego uruchamiania na wielu zasobach) i przekazuje je do innego odbiornika.

Streszczenie

Konstruktorzy publiczni

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) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String failureMessage)

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

Konstruktorzy publiczni

ShardLister

public ShardListener (ITestInvocationListener main)

Utwórz ShardListener .

Parametry
main ITestInvocationListener : ITestInvocationListener wyniki powinny zostać przesłane dalej. Aby zapobiec kolizjom z innymi obiektami ShardListener , ten obiekt będzie synchronizowany na main podczas przesyłania wyników. Wyniki zostaną wysłane dopiero po zakończeniu fragmentu wywołania.

Metody publiczne

wywołanieZakończone

public void invocationEnded (long elapsedTime)

Parametry
elapsedTime long

wywołanie nie powiodło się

public void invocationFailed (FailureDescription failure)

Parametry
failure FailureDescription

wywołanie nie powiodło się

public void invocationFailed (Throwable cause)

Parametry
cause Throwable

wywołanieRozpoczęte

public void invocationStarted (IInvocationContext context)

Parametry
context IInvocationContext

setSupportGranularResults

public void setSupportGranularResults (boolean enableGranularResults)

Parametry
enableGranularResults boolean

wsparcieGranularResults

public boolean supportGranularResults ()

Zwroty
boolean

dziennik testowy

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

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

dziennik testowy zapisany

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

Parametry
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

moduł testowyZakończony

public void testModuleEnded ()

Uruchomiono moduł testowy

public void testModuleStarted (IInvocationContext moduleContext)

Parametry
moduleContext IInvocationContext

testRunZakończony

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametry
elapsedTime long

runMetrics

testRun nie powiódł się

public void testRunFailed (FailureDescription failure)

Parametry
failure FailureDescription

testRun nie powiódł się

public void testRunFailed (String failureMessage)

Parametry
failureMessage String

Uruchomiono testRun

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

Parametry
name String

numTests int

attemptNumber int

startTime long